layouts and every seconds

0 favourites
  • 4 posts
From the Asset Store
This is a Dungeon Master tool & the 1st of 12 Combat Engines from the Building Combat Engines for Browser Games workshop
  • i created a event sheet that every 25 second create a object in the layout Fase1,but if i wait 25 seconds in the

    menu layout, and go to fase1 the object is create.

    what i want is when i go to layout fase1 start the count 25 seconds and after object is create.

  • Hi

    use a variable like when you are in Fase1 variable = start

    Then if Variable = start > every 25sec create object

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You need to make a custom timer.

    Create a global variable called "timer" or something like that. Next you need to make sure the timer only works when the layout is active (like dieblume86 mentioned).

    So if layout is active, every 1 seconds add 1 to timer.variable

    If timer.variable > 25 then set timer to 0

    If timer.variable = 25 then create object

    Obviously this would actually make a 26 second timer (25 seconds to count, and 1 second to reset) so you can actually create object at 24 seconds instead. That means the first object will be at 24 seconds, but each object after that would be 25. You could tweak this a little and make it 25 seconds every time I'm sure.

    ~Sol

  • thanks,it worked

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