Timer issue

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

  • deej011deej011 Member Posts: 159

    Any Ideas at all?

  • GnarlyGnarly canadaMember Posts: 840

    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.

  • deej011deej011 Member Posts: 159

    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

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956
    edited March 2015

    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.

  • deej011deej011 Member Posts: 159

    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.

Sign In or Register to comment.