Lives=0
Hello.
I am using gamesalad in a 4th grade class kids, to make a simple game with them. We are almost end it, but there´s a problem:
When i made an Atribute "If game live = 0, change scene", the game pause in the same level and do not change scene.
Best regards
I am using gamesalad in a 4th grade class kids, to make a simple game with them. We are almost end it, but there´s a problem:
When i made an Atribute "If game live = 0, change scene", the game pause in the same level and do not change scene.
Best regards
Best Answer
-
DarkUndeadSpawn Posts: 64
Add a new actorUse save attribute and change attribute.
I was trying...but any thing yet...
Place it out of scene
"Anywhere"
Add new rule in actor
If game.life = 0
do
Change scene
"Example Scene 1"
That was your problem. It should work now.
http://i995.photobucket.com/albums/af78/killa1234_2010/Scenechanger_zpsf5557ba4.png
Answers
Have you added a DisplayText behavior to an actor on the scene to watch the value of game.live? Maybe it's not actually getting to 0, or maybe it's going negative.
Or maybe 'if game.lives < 1'
It depends on the game - if you get hit multiple times it may not register fast enough that you hit 0, which means the change behaviour won't 'fire'.
Saying 'less than 1' or 'equal to or less than 0' will catch that error.
Hope that helps!
QS :
DThe idea of the game is to "eat" the yellow balls.