Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Preventing recovery
#1
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):

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>
Reply
Thanks given by:


Messages In This Thread
[solved] Preventing recovery - by mammoth - 12-26-2009, 01:24 AM
RE: Preventing recovery - by TheBiggestBoss - 12-26-2009, 03:30 AM
RE: Preventing recovery - by mammoth - 12-26-2009, 03:44 AM
RE: Preventing recovery - by TheBiggestBoss - 12-26-2009, 04:14 AM
RE: Preventing recovery - by mammoth - 12-26-2009, 02:25 PM
RE: Preventing recovery - by Azriel - 12-26-2009, 11:28 AM
RE: Preventing recovery - by TheBiggestBoss - 12-26-2009, 04:15 PM



Users browsing this thread: 1 Guest(s)