09-22-2008, 12:39 PM
you need something like this:
Hope this helps
Code:
<frame> 140 teleport
pic: xx state: 400 wait: 1 next: 141 ............
..........
<frame_end>
#the ball has teleported to the enemy but is still 120px off
#adjust the dvx in case it's off
<frame> 141 move_towards_enemy
pic: xx state: 15 wait: 1 next: 142 dvx: 120 ...........
..........
<frame_end>
#the movement needs to be stopped immediately
<frame> 142 stop_moving
pic: xx state: 15 wait: 0 next: 143 dvx: 550 ..........
..........
<frame_end>
#let's make the ball go down to the ground
#adjust the wait if necessary
<frame> 143 go_down
pic: xx state: 3 wait: 15 next: 144 dvx: 0 dvy: 3 ........
..........
<frame_end>
#stop the movement of the ball (again....)
<frame> 144 stop_movement_downwards
pic: xx state: 15 wait: 0 next: 145 dvx: 0 dvy: 550 ........
..........
<frame_end>
#time for the explosion :D
#that's your job now ;)
Hope this helps
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt
~ Breaking LFE since 2008 ~
"Freeze, you're under vrest!" - Mark, probably.
» Gallery | » Sprites | » DeviantArt