Randomly generate background actors?
rubyswb
Member Posts: 4
I'm creating a simple game where the character is falling down a chasm and has to dodge objects as he falls. Is there a way that I can make the objects random, so that each time the player dies the level changes (making the player unable to memorize a path to complete the game)?
Thanks in advance
Thanks in advance
Comments
If so, then the next step is to familiarise yourself with the random(min, max) Function which you can use in the Expression Editor.
e.g. random(0, 9) gives you a random integer value from 0 to 9.
All you have to do is spawn the specific object corresponding to the integer value outputted.
You can also use this function for randomising the spawn location.