- Joined
- Nov 15, 2010
- Messages
- 112
Guys, do you know how to make moving spells???
I mean like the target spin around b4 get knocked back..
I mean like the target spin around b4 get knocked back..
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Use a real variable. During every loop, set variable = variable + 3. Move the unit towards variable degrees.
Test

Events


Time - Every 0.50 seconds of game time

Conditions

Actions


Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by (1.00 - d) towards d degrees)


Set d = (d + 3.00)
Yeah but don't change the offset, only the angle.
Testi

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Test

Actions


Set d = 0.00


Trigger - Turn on Test <gen>


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




d Equal to (d + 360.00)



Then - Actions




Trigger - Turn off Test <gen>



Else - Actions
Test

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by (0.00 - d) towards d degrees)


Set d = (d + 3.00)
Testi

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Test

Actions


Set x = some angle


Set d = 0.00
Test

Events


Time - Every 0.05 seconds of game time

Conditions

Actions


If d < 360 then



Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by 100 towards x+d degrees)



Set d = (d + 3.00)


else



Unit - Move Blood Mage 0000 <gen> instantly to ((Position of Blood Mage 0000 <gen>) offset by 100 towards x degrees)



turn off this trigger


endif
Set angle = (Facing of (Attacking unit))