12-26-2009, 01:24 AM
What I'm trying to make is a large indestructible energy blast that does little damage, but pushes the enemy forward with the same speed it's moving at, so it keeps hitting him constantly until they reach the edge of the screen. I got that to work, but I'm having trouble because the enemy can just press jump and leap out of the blast. Is there a way to keep him from doing that? Oh, and catching him won't work, since that would only hit one enemy.
Here's the code of the object's flying frames (they're all identical):
Here's the code of the object's flying frames (they're all identical):
Code:
<frame> 0 flying
pic: 0 state: 3006 wait: 0 next: 1 dvx: 20 dvy: 0 centerx: 40 centery: 124 hit_a: 0 hit_d: 0 hit_j: 0
itr:
kind: 0 x: 22 y: 27 w: 55 h: 100 dvx: 30 fall: 100 vrest: 10 bdefend: 100 injury: 200 effect: 4
itr_end:
itr:
kind: 0 x: 22 y: 27 w: 55 h: 100 dvx: 20 fall: 100 vrest: 10 bdefend: 0 injury: 25 effect: 1
itr_end:
bdy:
kind: 0 x: 22 y: 27 w: 55 h: 27
bdy_end:
<frame_end>