GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Scene Reset Issue

sinbotsinbot Posts: 57Member, PRO

Hey GS gurus! Need to fix an issue where my hero dies, a replay actor (with a reset scene attribute) is clicked but the scene does not reset because GAME attributes have been changed as well. I don't want to reset the whole game to the splash screen of course but how can i reset the game attributes as well??

Comments

  • IceboxIcebox Posts: 1,472Member

    Create an actor , rename it "Reset GameAttributes" , add change attributes and change every game attribute back to its default state

    change attribute game.AAA to 0
    change attribute game.BBB to false
    change attribute game.CCC to 0
    change attribute game.DDD to 0
    change attribute game.EEE to true

    etc...

    Drag your actor in the scene and test if it works

  • sinbotsinbot Posts: 57Member, PRO

    You sir are a genius! ty!!!> @Icebox said:

    Create an actor , rename it "Reset GameAttributes" , add change attributes and change every game attribute back to its default state

    change attribute game.AAA to 0
    change attribute game.BBB to false
    change attribute game.CCC to 0
    change attribute game.DDD to 0
    change attribute game.EEE to true

    etc...

    Drag your actor in the scene and test if it works

Sign In or Register to comment.