Hi,
Please take a look at my capx
I plan to create 5 planes to fly to clicked location. However, there are way too many planes created and I could not figure out why.
Please can you help my explain it? Thank you very much
I haven't looked at the .capx but I'm guessing you only added the loop as a condition in the event? You should add the loop-event as a sub-event of a trigger condition like "On start of layout", or the event will run every tick and create 5 planes every tick.
So something like this:
+On start of layout: +Repeat 5 times: [ul] [li]>Create object Plane
Remove the "wait 5 seconds" and only 5 will be created. With it you get a continuous stream of 5 planes a tick for 5 seconds.
Develop games in your browser. Powerful, performant & highly capable.
R0J0hound: Your solution works great, thank you.
Nimtrix: Thank you for your solution, it also works