Timer issue
deej011
Member Posts: 159
I have a rule when touch is pressed change image for (seconds) but when i change scene the image changes back straight away so my question is how do i continue a timer when i go into another scene?
Comments
Any Ideas at all?
In the new scene can't you just make a new timer rule?
If your answer is no then you need to describe more details of what your trying to do.
i have an attack button and when u press the button you have to wait 30 seconds before you can use again but if u just go to the next scene you dont have to wait the 30 seconds it just resets
You need to make a timer attribute.
So,
Rule; When touch is pressed change attackTimer to 30.
Rule; If attackTimer > 0 change image
Timer; Every 1 second change attackTimer to attackTimer-1
Make sure you put this in each scene to keep the timer amount decreasing.
Thank you that's very simple and obvious i just have so many different things going on in my game it's easy to get stuck on the simplest things.