Restart Scene not working... another solution?

butterbeanbutterbean Member Posts: 4,315
edited November -1 in Working with GS (Mac)
I'm trying to create a restart scene within my platformer, and I created a rule:

When game.health =0 spawn actor: restart level

I created a global game attribute : Restartleveltouched and when that is touched, to destroy the button (restart level) and reset level

It starts again, but it's glitchy and she won't move and it's making static noises...

Any other ideas on how to implement this or what I could be missing?

Comments

  • butterbeanbutterbean Member Posts: 4,315
    Has anyone else used "restart Scene" and had problems? need another solution..
  • iDeveloperziDeveloperz Member Posts: 1,169
    Try the Restart game attribute.
  • butterbeanbutterbean Member Posts: 4,315
    What I'm wanting to do is if the player dies in level 3-1, to restart that scene again... don't understand why it's glitchy, if anyone else has implemented this in their game, can they give me a solution
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    couldn't you just create a rule on your player that says

    when game.Health = 0
    reset scene

    or are you trying to do something more complicated?
  • butterbeanbutterbean Member Posts: 4,315
    Basically I created the game attribute "touchedresetscene" and spawned an actor on the front layer each time the player dies

    If the player touches the restart button ,I put a rule in that touchedresetscene is true and reset the scene

    It goes back to the beginning but with static noise and she won't move...
  • butterbeanbutterbean Member Posts: 4,315
    Got it to work without glitches just need to fix a few things, thank you :)
Sign In or Register to comment.