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
43
S
19
G
12
Posts: 723
Reputation: 14,016

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
164
S
49
G
114
Posts: 7,680
Reputation: 79,559

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: R0J0hound and 7 guests