Move issue

zzap64zzap64 Member Posts: 405
edited March 2012 in Working with GS (Mac)
I have an actor who uses MOVE when he collides with an object. The problem I have is the actor stops about 100 pixels after the collision.
I want the actor to keep moving until he hits another object collision.
The collisions send the actor in different directions but the actor always stops moving.

Comments

  • POMPOM Member Posts: 2,599
    edited March 2012
    So use Accelerate instead of move :)

    Photobucket Roy
  • POMPOM Member Posts: 2,599
    if you want to stick with move , you gonna have to involve some booleans ..
    Like :
    self.move right
    self.move left
    self.move up
    self.move down
    etc ..
    Now when you want your hero to start move , then when he collide with object
    change his "self.move right" to TRUE .
    This way he will continue moving UNTIL you change "self.move right" back TO false .

    Photobucket Roy
  • zzap64zzap64 Member Posts: 405
    ok cheers, i'll give it a try.
    blimey, midnight in san francisco and exhausted after GDC, time for sleep.
  • POMPOM Member Posts: 2,599
    Good night zzzzzzzzzap64

    :D
    Photobucket Roy
Sign In or Register to comment.