0 Favourites

How do I fix the timer?

  • Hello, I checked all possibilies I know and it doesn't work I've found help in the "frequently added question" but it doesn't work.

    I made a game where enemies appears after 5, 10, 15s

    Then I realized the timer couldn't be modify so I rebuilt the game with a fake timer (a variable)

    I have:

    System: Every 1s => Add 1 to "Variable Timer"

    System: "Variable Timer" = 5 => Creat my object

    System: "Variable Timer" = 10 => Creat my object

    System: "Variable Timer" = 15 => Creat my object

    When I do that, it works, but I have like 9999 objects being created and the game get massive lag, why?

    I imagine the timer getting 0, 1, 2, 3 ... and it does works, but why so many objects ? Is it because there is many "ticks" during a second?

    I have the possibily to change the variable to "= > <, etc" , my logic suggest I must use "=" to make only one object... Maybe add another condition

    How do I fix that please? (I'm sure this is a stupid command but I can't figure it out )

    EDIT: I'm stupid! I'm looking for special conditions and I see

    "trigger once while true", Just add this condition and the problem is solved!

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Hi foxmaster "Trigger once while true" should do it

  • Hi foxmaster "Trigger once while true" should do it

    Thank you dude I ve just seen the option immediatly when I posted.., ridiculous , ridiculous!!! *cover his face with something*

  • You can use the Timer behaviour also.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
175 32,652
clifton11221's avatar
clifton11221
Unread hot topic
99 10,159
karshinkoff's avatar
karshinkoff
Unread hot topic
98 7,602
norum82's avatar
norum82