Timer loops...I need it to stop and....how to change to game over scene

Hi guys!

I'm so new with GS but I followed many of the expert videos and I got something great going on..however I'm having a problem with a customize timer I made.

I just made my timer and works well (from 9sec to 0) however it won't stop on 0, it keeps counting again from 9 to 0

I checked some videos explaining about it (from tshirtbooth) but that video is for another kind of timer not like I did with the png numbers.

So...that's the first problem....the second one is that I want when the time is over (00:00) it automatically changes the scene to the Game Over scene I have......how?

Many many thanks guys!

Vic

Answers

  • ArmellineArmelline Member, PRO Posts: 5,397
    Perhaps something like this?

    I know you've said you're using the png numbers, but they're just pulling from an attribute. I've used a self.TimeCount attribute, but you can point substitute it with any attribute. If you substitute it with the one you are using to control your pngs it should function fine.
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    hi Armelline,
    Thanks for your answer.
    I wish I could post an screenshot as you. I don't know how, so I can show you my setup.

    I'm really sorry, I'm still a little confuse.

  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    I made in the scene attributes a TimeCount (real) but later in the actor attributes I can't fin the self.TimeCount, it's in Game - TimeCount but it's not "self"
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    UPDATE:

    Sorry, I'm dumb. Yeh...I just type self.TimeCount and follow your setup. Yes now the count ends.....but......doesn't count. I mean, before counted from 9 to 0, right? now it's just 0 all the time.
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    NEW UPDATE ;)

    If I back to the actor attributes the attributes change back, the self.TimeCount is not there any more and back to self.mydigit

    How can I post a screenshot? Sorry I'm in the other side of the world and is difficult to communicate
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    Hi, this is my screenshot dropbox link: https://www.dropbox.com/s/2dtlmjrfdhuhndo/mysetup.jpg
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    anyone help? please?
  • v76yo@hotmail.comv76yo@hotmail.com Member Posts: 9
    anyone help? please?
Sign In or Register to comment.