Random selection


  • Posts: 3
How can I make stencyl select an actor for example randomly? Or make Stencyl randomly select and load a premade chunk of terrain? (I'm not talking about procidual terrain generation.)


  • *
  • Posts: 2243
Add each actor to a list, pick a random item from that list.

As for terrain, you can use random numbers again and just keep generating a new number. Each number corresponds to a certain terrain layout. I used that technique here - https://www.kongregate.com/games/BowWow200/hot-air-balloon-challenge.