WAIT Action

Discussion and feedback on Construct 2

Post » Sun Jan 01, 2012 7:44 pm



Based on "normal" programming experiece I would expect the sprite to flash - it doesn't....

This is the first thing I really don't understand, even thou I have no problems with the event based concept - I think
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Mar 17, 2012 3:49 pm

i had the same issue whit this instructions...


event->repeat 15 times

actions ->player set invisible
          system wait 0.1 seconds
          player set visible


i expect to the player flash too, but just disappear one time and appear after 1.5 secs
B
3
Posts: 1
Reputation: 352

Post » Sat Mar 17, 2012 4:10 pm

Loops run instantly, so instead of set invisible, wait 0.1 then set visible, you have set invisible 15 times, wait, set visible, 15 times.
Try a variable
Counter is less than 15, sprite is visible, set invisible, wait 0.1, set visible, add one to counter.
Image Image
B
161
S
48
G
90
Posts: 7,356
Reputation: 66,767

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Lof and 1 guest