Alright y'all, I need some help. I have made a spell that makes a unit fly forward to a location and then slam down, the only problem I am having is the timing. Does anyone know a good way that I can make the movement smooth no matter the distance? I have some ideas but it might b kind of ugly to put together. So anyone with and easier way please enlighten me
in the case the speed of light is replaced by the units movement speed, replacing energy with distance the equation becomes distance=unitspeed2 so just set the units movement speed to half the distance and ill look fairly fluid .
Somebody knows advanced math... Good! Another idea would be to simply order the unit to move there and wait (Ingame wait) SquareRoot(Pow([Start Point x]-[Destination Point x],2)+Pow([Start Point y]-[Destination Point y],2)) / Unit Speed
x and y are the x and y coordinates of the two points. Good luck!
So what are you suggesting with the whole half the distance? I'm guessing just use an Issue Move Order? What exactly does the in game speed represent? Is it like velocity of any sort? d/t? so A speed of 200 would mean a distance of 200 traveled in 1 second? If thats right please tell me because I'm unsure
You simply order the unit to move there. And in my formula, it waits exactly how much it would take the unit to reach the position. The unit's movement can be seen under Movement - Speed Base. That's all! And if you use it with a dummy unit then it's perfect.
Ah okay I see what you mean. So it would just be like my Morph spell for your contest, hmm but what about the flying change? what does it mean to say Change at rate 500? like I know that higher will make it go faster but what does it represent? is it distance/second?
funny that i actually respond so late. well ive been working on this spell when you mean what im thinking of. now im finished with this spell and it took me a long time but atlast im done. its name is superslam and works with a parabel. well if you are having any problems understanding this spell then pm me or post into this thread. heres the link. http://www.wc3sear.ch/index.php?p=Spells&ID=989