Timer behavior, problem.

Discussion and feedback on Construct 2

Post » Wed Jun 15, 2016 8:31 pm

Hello, I need to use the timer behavior but this has only one action to check:

Image

There is only one option, triggered, there no without trigger option.
I need to check when the time has elapsed and then execute all actions each tick without using a trigger.
So to make this an event type trigger cannot be used.
I need this:

Image

Any suggestions or ideas?
B
29
S
12
G
20
Posts: 756
Reputation: 13,855

Post » Wed Jun 15, 2016 9:59 pm

Yes it would be nice to have. Have a look in to expressions, as there are some, and then use one of compering actions. I personally just make my own counter: every tick - add dt to variable, variable > then x - set variable to 0.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
85
S
27
G
20
Posts: 1,962
Reputation: 18,651

Post » Thu Jun 16, 2016 9:10 am

Its easy with the trigger. But you dont need it.

https://drive.google.com/open?id=0B1SSu ... WlOMnl3YlU
B
33
S
18
G
27
Posts: 2,441
Reputation: 20,346

Post » Thu Jun 16, 2016 9:18 am

that's at least easy.

create a group of events that you want to be executed each tick after timer and disable it.

then on timer (the one with arrow) enable group.
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
41
S
14
G
12
Posts: 623
Reputation: 9,359

Post » Fri Jun 17, 2016 9:56 am

@megatronx

@99Instances2Go

@saiyadjin

Thanks guys !, there is another way to do this using the behavior, leave the file for anyone who wants to check.

Image

https://dl.dropboxusercontent.com/u/60803633/TIMER.capx
B
29
S
12
G
20
Posts: 756
Reputation: 13,855


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests