Unit to Mouse Explosion
Which point are you talking about? The distance variable tells us how far to move the explosion after each loop. In my example I used .5. This means the explosions would occur every one half tile.
Edit: I'll just explain the whole thing.
Start - Start coordinate of the explosion
Current Position - Th current coordinate of the explosion
Distance - Specifies how far apart the explosions are
As long as variable Distance is less than the absolut value of the mouse coordinates minus the variable Start then the actions will run
Wait slows the explosions so it's not instant
Change variable Current Position to variable Start plus Distance towards the point of the mouse
Create an explosion
Add .5 to variable Distance so when the actions run again the new value of variable Current Position will be one half tile close to the mouse position
If variable Distance is greater than or equal to the absolut value of the mouse coordinates minus the variable Start then the variable Start and variable Distance resets.
This post was edited 1 time, last edit by Morphling: May 16 2010, 2:39 am.
Skin to bone, steel to rust, ash to ashes, dust to dust.
That's the mouse x y location.
I have mostly left SEN except for the Temple Siege 2 forum (hidden to most of you). I am available via PM still, and Skype as JackRCDF.
If it is important to you, you will find a way. Otherwise, you will find an excuse. -Unknown
Perhaps you shouldn't be on SEN as much, too...
Better than the iPad!
0 members in this topic (italic members are currently writing a reply): None
Apos -- Discipline lol
jjf28 -- if only you'd invested in that crate of muzzles
Wing Zero -- lol inf