- Joined
- Jun 10, 2019
- Messages
- 69
Hi all,
I'm making a fairly simple spell, mostly as practice/education. It's called Inner Flame. When cast, the caster fires a projectile in a target direction that damages the first enemy hit. The projectile then disappears.
Functionally, I have it working perfectly. I made casting Inner Flame spawn a unit with the projectile's model, and have that unit teleport every few hundredths of a second teleport a few units in the target direction. When an enemy unit comes within range of the projectile, a dummy spawns and damages the enemy. The projectile unit then dies.
While it's working mechanically, the projectile looks clunky while it's moving. I guess that makes sense, as it's teleporting instantly between periods of immobility, but I'm hoping that there's some way of making it look smoother?
Thanks in advance!
Edit: I forgot to mention 2 things:
1) If possible, I'd prefer to keep things in GUI; I don't know the first thing about JASS, and while I'm not opposed to learning, I'd prefer to stick to things I know for this spell.
2) I also figured out how to make the projectile work by ordering the target to move in the target direction, but then I was limited by the movement speed maximum. I don't believe there's an easy way to get around that, but if there is, please let me know.
I'm making a fairly simple spell, mostly as practice/education. It's called Inner Flame. When cast, the caster fires a projectile in a target direction that damages the first enemy hit. The projectile then disappears.
Functionally, I have it working perfectly. I made casting Inner Flame spawn a unit with the projectile's model, and have that unit teleport every few hundredths of a second teleport a few units in the target direction. When an enemy unit comes within range of the projectile, a dummy spawns and damages the enemy. The projectile unit then dies.
While it's working mechanically, the projectile looks clunky while it's moving. I guess that makes sense, as it's teleporting instantly between periods of immobility, but I'm hoping that there's some way of making it look smoother?
Thanks in advance!
Edit: I forgot to mention 2 things:
1) If possible, I'd prefer to keep things in GUI; I don't know the first thing about JASS, and while I'm not opposed to learning, I'd prefer to stick to things I know for this spell.
2) I also figured out how to make the projectile work by ordering the target to move in the target direction, but then I was limited by the movement speed maximum. I don't believe there's an easy way to get around that, but if there is, please let me know.