Randomly generate background actors?

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 :)

Comments

  • TheGabfatherTheGabfather Member Posts: 633
    edited February 2014
    Do you already know how to spawn the objects at intervals?

    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.
  • rubyswbrubyswb Member Posts: 4
    Thanks! I'll try that out
Sign In or Register to comment.