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
44
S
23
G
13
Posts: 723
Reputation: 14,895

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 ImageImage
B
167
S
50
G
160
Posts: 8,173
Reputation: 103,442

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: gustavo130899 and 6 guests