Restarting - where am I going wrong?
quantumsheep
Member Posts: 8,188
Hello fellow salad consumers!
I've always had a problem restarting my games, which is why they don't have more than one level in them these days!
I thought I'd bite the bullet and try and just get a simple restart going.
On my title screen I have an actor that states that enemieskilled = 0
In the main game, when enemieskilled = 2 then it pauses and goes back to the title screen.
When I try and start again, GameSalad crashes (remember, enemieskilled is changed back to 0 on account of you being back on the title screen)
What am I doing wrong here? It makes sense to me, but is obviously not working
Any ideas?
Thanks in advance,
QS
I've always had a problem restarting my games, which is why they don't have more than one level in them these days!
I thought I'd bite the bullet and try and just get a simple restart going.
On my title screen I have an actor that states that enemieskilled = 0
In the main game, when enemieskilled = 2 then it pauses and goes back to the title screen.
When I try and start again, GameSalad crashes (remember, enemieskilled is changed back to 0 on account of you being back on the title screen)
What am I doing wrong here? It makes sense to me, but is obviously not working
Any ideas?
Thanks in advance,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Comments
Not having a reset feature is another must have with the save feature!
If there is a way of implementing this in the meantime, it would be good to know
1. Reset feature
2. Save feature
3. High score feature
Still stuck on this though, so any help is appreciated!
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I took out the enemieskilled=0 thing on the title screen
The game still counts how many enemies killed there are, so that when it =2, for example, the level ends and you go back to the title screen.
However, pressing start, which simply changes scene to level 1, still crashes the game
What's going on???
Cheers for the help!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I thought that it wasn't possible to institute your own reset, and the only way was for GS to provide this... and high score... and save feature!