How to use the wait action for a event succesfully?

Get help using Construct 2

Post » Thu Jul 09, 2015 9:55 am

Message: Calfuso is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
I did a topic about this yesterady but i didn't get enough help there and since new topics tend be seen more i am doing a new one. I have a event that will make the game go to another layer after a set amount of seconds. I want to be able to delay the timed event by a couple of seconds by clicking on a object. The closest i have got to achieving this is the wait action. The problem whit the wait action is that it only can affect actions. The timed event is you know a event. I have tried to make the timed action as a sub event after the wait action but it mkaes the timed event never happen. In hope i explained myself well and will be grateful for a answer. And if you have a answer like the one below, tell me how to put in global numbers and how to use the green earth and such.
B
12
S
2
Posts: 267
Reputation: 1,344

Post » Thu Jul 09, 2015 10:27 am

I would use timer event that might work. I have not tried it yet but, try it and let us know
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Thu Jul 09, 2015 10:33 am

This seems like a job for the timer behaviour..
I would use it in combination with a variable (instance or global)
Then it should be something like this:

on layout start - start timer for variable1 seconds

on touched object -
> stop timer
> add something to variable1
> start timer for variable1 seconds

on timer
> goto layout
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Post » Thu Jul 09, 2015 1:39 pm

Usually when I have this problem is just a matter of indentation, as the order of events. Sometimes I put a timed event in a boolean variable to stay active and disabled in a certain time interval.
B
39
S
9
G
3
Posts: 259
Reputation: 4,355


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 38 guests