Probably for what you're describing you put the events into groups on the same event sheet and enable/disable them.
It's difficult I guess, this is the latest I could find from 2 years ago gamezdev.com/construct-2-games-to-apk-using-cordova
Objects reset to their initial states when you go to the layout unless you made them global
Yep so as I mentioned what are you trying to reset that is not resetting?
There is a separate action 'Restart layout' which does different things than 'Go to layout' such as resetting the groups. If this doesn't resolve the problem then let us know what exactly you are trying to reset.
This doesn't make much sense, probably why no one responded. You could provide an image demonstrating what you mean.
Compare enemy Y is less than player Y
> Look at Layers bar and count them Lol, Of course I can do that but it changes all the time because I add things and I wanted it to be automatic and not change the number every time. There is no such thing as : Layers.count?
> Look at Layers bar and count them
Lol, Of course I can do that but it changes all the time because I add things and I wanted it to be automatic and not change the number every time.
There is no such thing as : Layers.count?
Hehe I know. There isn't anything like this, there really isn't a reason to use number of layers in events and logic.
Look at Layers bar and count them
Develop games in your browser. Powerful, performant & highly capable.
Where is the challenge with this game? The player has HP but the enemy never attacks.
You do not have permission to view this post
Under properties there is an option called 'First layout'
1. You are using global variable and not fly instance variable for health
2. Not sure what this means, from what I can see you can keep shooting the box to spawn flies
3. Seems like a bug linked to 1. so changing that should fix it
I guess Sleep is another status like the others so check when Drowsy is 0, then add some value to Sleep. If it's normally 0 when it's not activated then you could instead add a condition if it's 1 then subtract 1 and apply Sleep.