+ 1

How to move an object in one lane (from left to right) AT DIFFERENT TIME INTERVAL ?

for example, I have an object (picture or figure) and I would like to move it now, another one after 5 seconds, another one after 3 seconds ... and as a result, several identical objects will move in the same lane it would be ideal to realize the time interval using random but how to do it all? Or maybe you know some examples Thank you!

13th Mar 2020, 2:39 AM
PR PRGR
PR PRGR - avatar
4 Respuestas
+ 4
https://code.sololearn.com/WXOgmVtj7v26/?ref=app ** please wear face mask 😷 and wash hands offen💦
13th Mar 2020, 4:04 AM
Calviղ
Calviղ - avatar
+ 2
Calviղ thank you very much!
14th Mar 2020, 10:33 PM
PR PRGR
PR PRGR - avatar
+ 1
setinterval() function of js can help you with this. Try it if you got any type of error we will help you.
13th Mar 2020, 3:02 AM
Maninder $ingh
Maninder $ingh - avatar
0
Yes, I use it. I can do it with one object on one line. But how wise to apply it to several identical objects on the one line?
13th Mar 2020, 3:10 AM
PR PRGR
PR PRGR - avatar