Object created on restart:
I have a bit of code that will create a sun every 30 seconds and it will move across the screen and perhaps drop a star. Works great... I've attached a screenshot.
My very first line of code is to destroy the sun.
The problem I'm having in Android is that when I press restart (jump to frame xxx) the sun immediately is created and moves across the screen - every single time I press restart.
This only happens on my android device. It does not happen on the windows version or if I run the game from within fusion on my windows pc - which is a touch screen.
Is there a way to stop this? Because the star that the sun drops gives you an extra life and I can't have someone getting an extra life for pressing restart.
Game loses focus
When the game loses focus it can create a lot of problems - or none at all. It's really random.
I take a screenshot and the game then stops working until I restart the level - then it works fine again.
Next time I take a screenshot with less objects in the room and it doesn't interfere with the game at all.
I clicked on the notes at the top and then went back to the game and it wouldn't work - everything just stopped.
Clicked on open folders and my level wouldn't end - it just hung - pressed restart and everything works again.
I paused the game and pressed the home button and then it was impossible to get back to the game.
Is there a way to simply just close the game when it loses focus which will solve this?
I only ever use an Android device to test my own games, so is this kind of behaviour perhaps something Android users would be used to and think nothing of?
Anybody have any ideas?