How do I create time delay

Get help using Construct 2

Post » Tue Feb 02, 2016 8:56 am

Message: Ramez1 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
I am doing time delay, using wait but it is not working at all
Code:
https://drive.google.com/open?id=0B1pGW-xaP8VfMXVpRWZPZVo2Y0U

the thing is that when I view it in the debug mode the transition variable change from 1 to 0 quickly without waiting 30 sec
B
7
Posts: 21
Reputation: 325

Post » Tue Feb 02, 2016 10:12 am

cant help you because i cant see all your code above 22

1. ok because from event 1 to 22 transition var do not equal to 1 therefore event 22 did not fire

2. the reason transition var change from 1 to 0 is somewhere after event 22 you have a event that change transition var from 1 to 0

3. i cant see you code to tell what u do wrong

4. final line 22 is correct by itself. If you set transition var to 1, on start of layout you'll see system wait 30 second

if you dont understand this post the code or .capx
Image
B
42
S
13
G
2
Posts: 329
Reputation: 4,085

Post » Tue Feb 02, 2016 12:01 pm

Message: Ramez1 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
@wizdigitech didn't get it, please check the code
https://drive.google.com/open?id=0B1pGW ... WZPZVo2Y0U
B
7
Posts: 21
Reputation: 325

Post » Tue Feb 02, 2016 6:33 pm

i only use to debug your code so: Delete the Debug var, T1, T2 and line 23 and i add Set Transition to 1 on line 76 for it to work
https://drive.google.com/open?id=0B0MCC ... 25ZR3hpS2s
Image
https://drive.google.com/open?id=0B0MCC ... FFqdnpvVFU
Image
B
42
S
13
G
2
Posts: 329
Reputation: 4,085

Post » Tue Feb 02, 2016 7:15 pm

There is also a timer behavior that makes stuff like this more traceable.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788


Return to How do I....?

Who is online

Users browsing this forum: Elliott, jojomickymack, Yahoo [Bot] and 22 guests