Fire An Event Every 1 Time Out Of 5 ?

Get help using Construct 2

Post » Sun Feb 17, 2013 12:44 am

Fire An Event Every 1 Time Out Of 5 ?

Hi,

I am trying to fire an event every 1 time out of 5 times.

This is what I have, but it's not working:


I understand "%" to give the remainder of a formula.

Any help would be appreciated!
Thanks...

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Sun Feb 17, 2013 12:25 pm

Sorry to bump this, was hoping for some help...

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Sun Feb 17, 2013 1:01 pm

Can you provide some more detail on that statement.

It reads ThrustTimer = Ship_Thrust.ThrustTimer % 5 = 0..

There's 2 conditions in there which seems a little odd.

Since you are setting the ThrustTimer back to 0 anyway, can't you just check for when it's value is equal to 5?
B
5
Posts: 39
Reputation: 678


Return to How do I....?

Who is online

Users browsing this forum: jeffige and 29 guests