Scene Reset Issue

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 Member Posts: 1,485

    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 Member Posts: 232

    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.