Lives=0
Ruddvandolph
Member Posts: 19
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
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
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 :
D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
The idea of the game is to "eat" the yellow balls.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page