Event Order?

  • I am almost finished with my game called "The legend of Bloo". Its a 1 minute game where you have to save as many cows as you can.

    While finishing up i ran in to a couple of problems. I solved most of them with work around but i still don't know why my timer is starting at the title screen.

    I have a countdown timer but it plays during the title screen and HowTo menu. The thing is my countdown event is on the actual level not the title. Why would it start before i even get to the level?

    Really weird.

    Any help would be great. I will also mention everyone who helped me on my project in the description.

    Thank you   <img src="smileys/smiley2.gif" border="0" align="middle" />

  • To answer your question most of us have to see your code. Please post your CAPX

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • On your level's event sheet, can't you just do:

    On Start of Layout:
     Set value of CountDownTimer to 0
    
  • Won't work. I want to do something like, on start of layout (allow every tick). But every tick is a condition not an action unfortunately.

  • i think every tick is whats running it on game start up.

  • Every tick just means around 60 times per second, you can't turn it off or on. Everything runs every tick, unless you have told it not to with some condition.

  • i guess i have to tell it not to on the title event sheet somehow.

  • Seems this could be solved with a simple boolean operation.

    Make a global variable and call it something like allowTimer.

    During your title set allowTimer to 0.

    When your game starts change it to 1 and include an event like this:

    +"allowTimer" is equal to 1

    +Every tick

    -[your events that controls the timer.]

  • Thank you inkBot. Sounds like it could work. Definitely gonna try it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)