Unit to Mouse Explosion
Post #1
Morphling
May 14 2010, 11:30 pm
Post #2
UnholyUrine
May 16 2010, 1:20 am
Post #3
Morphling
May 16 2010, 2:24 am
|
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. Variables: Start - Start coordinate of the explosion Current Position - Th current coordinate of the explosion Distance - Specifies how far apart the explosions are Actions: 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. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #4
UnholyUrine
May 16 2010, 2:34 am
Post #5
Jack[RCDF
May 16 2010, 2:38 am
|
Skin to bone, steel to rust, ash to ashes, dust to dust.
|
That's the mouse x y location.
![]() ![]() ![]() ![]() ![]() ![]() Red classic. 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 Magnificent! 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
+ guest(s)
+ guest(s)
[03:27 am]
[03:26 am]
[02:40 am]
[02:39 am]
[01:51 am]
[01:45 am]
[01:32 am]





.. as you Pee![[close]](/images/up.gif)