When actor doesnt collide

Hi, on my game you score a point when you let go of the up button, and the actor colides with another.

i need i so when you let go and the actor doesn't collide it changes scene, to a game over scene, but im having some trouble with the best way to do it.

any ideas?


  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,947

    Try using another actor and detect collision with that actor to change the scene. For example, you might have a "wall" or "end zone" actor that does this. If that doesn't fit your setup, you'll need to explain in more detail how your game works.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • MoosefaceMooseface Member Posts: 13

    Hi tatiang,

    I tried this but it doesn't give the effect I want.

    Basically, you aim a ball, if the ball misses or even goes straight through the target actor r it then after a few seconds needs to go the the game over screen.

    So if the actor ends anywhere but in the target it needs to change scene, otherwise if it lands in the target, the game continues

  • AngryBoiAngryBoi Member Posts: 586

    You can create an attribute called "Collide" and then have a rule that says "when actor overlaps or collides with your actor, set "collide" to 1. And then another rule that says when attribute "collide" doesn't equal 1, after 3 seconds or so there is a scene change.

  • MoosefaceMooseface Member Posts: 13

    thanks TappWater,
    i have the first bit working, but how do i do this?

    "And then another rule that says when attribute "collide" doesn't equal 1, after 3 seconds or so there is a scene change."

    i cant find a doesnt equal setting

  • SLOCM3ZSLOCM3Z Member Posts: 797

    Doesn't equal is the != symbol.

  • SLOCM3ZSLOCM3Z Member Posts: 797

    So like @TappWater said. You could do 'if attribute Collide != 1' :do: 'Timer: After: 3 change scene'

  • MoosefaceMooseface Member Posts: 13

    Thanks for you help,

    the problem i have now is that because when the game starts the collide attribute is not equal to 1, the game goes striaght to the game over screen

Sign In or Register to comment.