let a scene restart

JarivespaJarivespa The NetherlandsMember Posts: 65
hey

i am busy with a game but im stuck. i cant find a rule that when the player hits a wall, the scene must be restart so you can try it again. i hope you guys can help me out.
sorry for my bad english

-jarivespa-

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @jarivespa Using a Change Scene behaviour set to go to the same scene should do it.
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    @ gyroscope i know but it must hit the wall and then it must restart

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The rule you need is When actor collides or overlaps with [wall actor] --> Change Scene.
  • -Timo--Timo- Member Posts: 2,313
    edited November 2013
    The rule you need is When actor collides or overlaps with [wall actor] --> Change Scene.
    oh my gosh, thats genius! ;)
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    @tatiang i cant find overlaps and i have this with collides < img src="https://pbs.twimg.com/media/BaWlL7NCcAA3jj6.png" >
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    owh i already got it. thank you for the help. :D
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    its just a simple rule ill walk you through it:

    your going to have to ACTORS, one actor is the main actor, the other ACTOR is the wall actor that you want the main actor to collide with.

    go into the wall actor and make a RULE

    so for the rule its: if actor of type collides with the main actor
    then type in the DO area;
    change scene
    and make it change to the same scene.
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    or even here is a bunch of photos in order that you need to do to make this work,

    IMAGE ONE: creating rule in the wall part 1:
    image

    IMAGE TWO: create rule part 2
    image

    IMAGE THREE: create rule part 3
    image

    IMAGE FOUR: create rule part 4
    image

    IMAGE FIVE: create rule part 5
    image
  • JarivespaJarivespa The NetherlandsMember Posts: 65
    thank you guys :D
Sign In or Register to comment.