Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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:
[li]>Create object Plane
Develop games in your browser. Powerful, performant & highly capable.
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.
R0J0hound: Your solution works great, thank you.
Nimtrix: Thank you for your solution, it also works