My problem is that when my character loses all lives was to go to the scene to "Game Over", but the game freezes and does not change. Can someone help me? I am developing on Windows 7.
I changed destroy actor to last, but but the problem still there.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
I would recommend doing some debugging using DisplayText and Log Debugging Statements. Start by watching (with DisplayText) the value of game.lives (or whatever you called it) and add a Log Debugging Statement immediately before and after you think it should change scene. Then check the log to see if those statements ran.
Your 'game over' scene may be corrupted. Have you tried changing the scene to a different scene when you lose all lives? If the scene is able to change to a different one you will need to remake your 'game over' scene because it is corrupt, but if it doesn't change you will know you have a coding error.
Comments
Instead of:
When [condition]
Destroy actor
[Important behaviors]
You should always list the Destroy actor rule last:
When [condition]
[Important behaviors]
Destroy actor
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User