toggle menu
Categories
Discussions
Dashboard
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Dashboard
Sign In
·
Register
×
Home
›
GameSalad 101
›
Working with GS (Mac)
help!!actor suddenly disappear
ragg
Member
Posts:
65
February 2010
edited November -1
in
Working with GS (Mac)
hey guys,why everytime i restart the game after game over by changing the scene back to the game scene...my main actor just disappear?i didnt preserve the game scene...help pls
Comments
ragg
Member
Posts:
65
February 2010
found my problem d...cause by a boolean attribute:S
JGary321
Member
Posts:
1,246
February 2010
You have to reset all the game.attributes.
For instance if you have a rule that says if game.HP = 0, change scene to GAME OVER.
You have to also reset game.hp otherwise when the scene loads, it see game.HP as 0.
The scene is not preserved, but all game.attributes are.
-JGary
ragg
Member
Posts:
65
February 2010
yeah...got it!thanks
Sign In
or
Register
to comment.
Comments
For instance if you have a rule that says if game.HP = 0, change scene to GAME OVER.
You have to also reset game.hp otherwise when the scene loads, it see game.HP as 0.
The scene is not preserved, but all game.attributes are.
-JGary