How do I activate a command if true within x seconds?

Get help using Construct 2

Post » Thu Jul 07, 2016 2:58 am

Something like:

If on floor
-or-
Within 2 Seconds of the above being true
================
do a thing

If you understand my gibberish wording, please help.
B
21
S
6
Posts: 21
Reputation: 1,296

Post » Thu Jul 07, 2016 4:10 am

The most reliable way to do something like this would be to use the timer behaviour, or make a timer for the object yourself (instance variable perhaps).

[Object Is on floor]
[Every 1 seconds]
--- Subtract 1 from timer

[Object is on floor]
[Timer = 0]
--- Do stuff

[Object is not on floor]
--- reset timer

Hope this points you in the right direction

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Jul 08, 2016 11:56 pm

Thank you!
This is what I ended up doing:
Image
B
21
S
6
Posts: 21
Reputation: 1,296

Post » Sat Jul 09, 2016 1:44 am

No problem :) Glad you figured it out :D

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 41 guests