Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
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
How do I create irregular / random intervals for moving objects when I enter the scene?
Now I use:
It but is not accidental and surprising for the players.
Do you mean the creation time should be random? Replace the 3 with random(x,y) to create a random time in a range.
Is there also the option to set the random distance between the creating objects directly in pixels?
The create object action has x,y co-ords you can set a random x or y in the same way. Also I should note random also picks decimals in range so if you want specific you can use round(random(x,y)) to make it a whole number.
Is it possible to alternately show two different sprite in a random interval so they do not overlap?
Sorry, not sure I fully understand that question. Do you mean alternate between two objects being created? Do you mean do not overlap in their position when created?
< direction of movement
first objekt first objekt second objekt first objekt second objekt .........
- diferent distance.
Develop games in your browser. Powerful, performant & highly capable.
Well whatever you want to alternate between you can set a variable to choose(x,y,z...) command to pick from a number of options. Then you say if variable=x, do this, if variable=y do something else.