x


Making a randomizer script for a basic "Runner" game...

What would be the best way to make a randomizer script for a runner game? So that way the levels would be randomized and wouldn't be the same over and over?

Example of Runner Game: Chop Chop Runner

more ▼

asked Nov 23 '10 at 05:27 PM

ChimpKing gravatar image

ChimpKing
115 16 17 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Which way is best really depends on the game, but a simple, general way would be to have a set of level "chunks". Whenever you need a new chunk (like when the player is getting close enough to the end of the generated level so far), just choose one from the set randomly and append it to the end of the level. Each chunk would be different, so the level would be different each time it's played. There's all kinds of complexity you can add from there, depending on the game.

more ▼

answered Nov 23 '10 at 10:18 PM

Tom 10 gravatar image

Tom 10
287 2 3 7

Hmmmmm......... Maybe, I will wait for other possibilities and will decide later. Thanks Again!

Nov 23 '10 at 10:21 PM ChimpKing

Ok. No one else has a solution. Thanks!

Nov 24 '10 at 03:02 AM ChimpKing
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5095
x801
x575
x322
x15

asked: Nov 23 '10 at 05:27 PM

Seen: 1254 times

Last Updated: Nov 23 '10 at 05:27 PM