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
I want to create an object at a random moment. This moment should not be shorter than 1 second and longer than 5 seconds. How can i do it?
Hi, you can use system > every random(1,5) seconds, and then action is create object
If you need only one object -
On start of layout : Wait random(1,5) seconds, Create object
If you need to spawn every 1-5 seconds -
Every random(1,5) seconds: Create object
Thanks. I will do. I have one more question. 2 objects must be randomly created by the same object. how can I do it?
Develop games in your browser. Powerful, performant & highly capable.
On the object spawning the other objects you can set a variable to a random number in a range based on number of possible object. Then depending on value you have conditions to spawn an object.