Hello
Currently I have this :
IF
A = 1
Trigger once
THEN
set box.opacity to 0
wait 0.1 seconds
set box.opacity to 1
and it's working fine.
But I would like to replace it with Repeat
I tried this :
Repeat 3 times
set box.opacity to 100
but it doesn't work, opacity stays at 0. I also tried by adding trigger once here and there and it doesn't work either. What is the proper way to use repeat ?
Many thanks
I think the wait tutorial shows a similar example but this would work:
a=1
trigger once
repeat 3 times
--- wait loopindex*0.2 seconds
--- set opacity to 0
--- wait loopindex*0.2+0.1 seconds
--- set opacity to 100
Develop games in your browser. Powerful, performant & highly capable.
Ok ok, I read the repeat tutorial but I wasn't using the wait with repeat, I think I understand how it works now.
Thank you very much !