Actor collision only works in first moments of scene

PimanPiman Member, PRO Posts: 165
edited January 2012 in Working with GS (Mac)
I have two actors that have behaviors upon collision, but somehow the collision is not detected after time passes. Does anyone have any idea what the problem might be?

I needed to add "self.time " somebody told me to make it work - and indeed without it the collision wasn't detected at all - but now it seems still buggy.

Comments

  • calvin9403calvin9403 Member Posts: 3,186
    Do you want two actors to bounce of each other or just bounce of the wall
  • PimanPiman Member, PRO Posts: 165
    No, one changes image when collides and the other destroys. One is dragged into the other while the camera moves through the level (large scene).

    It works if it happens within 1 second, but after they just overlap and nothing happens.
  • calvin9403calvin9403 Member Posts: 3,186
    well make a timer 0,5 seconds and destroy
  • MotherHooseMotherHoose Member Posts: 2,456
    which actor has the collide rule? … both?

    perhaps a gameAttribute boolean collided and leave it false

    on main Actor:
    Rule: when
    Attribute: game.collided is false
    changeAttribute: self.Image To: whatever is your default/initial image
    Otherwise:
    --changeAttribute: self.Image To: whatever is your collide image
    --and use the self.time to changeAttribute: game.collided To false

    On destroy actor:
    Rule: when
    Event: overlaps or collides with actor type: your main Actor
    --changeAttribute: game.collided To: true
    --Destroy this actor

    @};-
  • PimanPiman Member, PRO Posts: 165
    Thanks, but that didn't work either. This is so odd. It seems like there are random bugs. Is the camera movement?
Sign In or Register to comment.