Hi.
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.
Thank you.
Do you mean the creation time should be random? Replace the 3 with random(x,y) to create a random time in a range.
Done.
Is there also the option to set the random distance between the creating objects directly in pixels?
Thanks.
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?
Develop games in your browser. Powerful, performant & highly capable.
Yes,
< direction of movement
first objekt first objekt second objekt first objekt second objekt .........
- diferent distance.
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.
Super :)