Log in

View Full Version : Randomization


mikeejimbo
Mar 10, 2004, 07:46 AM
Is there any way that any of you know of to put randomization, (or pseudo-randomization at least?) in a level?

For example what if I wanted to make a level where you can get a random powerup?

Lem_Gambino
Mar 10, 2004, 09:06 AM
The enemies drop powerups randomly. But I'm no JCS expert so I can't really help you.

Violet CLM
Mar 10, 2004, 11:24 AM
WWWWWWWWWWWW
S 1S 2S 3S W
W WW WW WW W
W WW WW WW W

S is a sucker tube which sends you right. 1, 2 and 3 are animated tiles as follows:

1: Wall, blank, blank.
2: Blank, wall, blank.
3: Blank, blank, wall.
Make all the animated tiles be at some speed other than 0 (and probably not too high, either). You should now fall down a random pit each time you enter the sucker tube.

mikeejimbo
Mar 10, 2004, 12:46 PM
I see. I was thinking it might be something like that.

They should all be the same speed, correct?

Now, what if I added a random frame wait modifier?

Violet CLM
Mar 10, 2004, 01:51 PM
Yes, all the same speed. Adding a random wait will just tilt the odds.

mikeejimbo
Mar 10, 2004, 02:36 PM
Ok then, thanks.

Radium
Mar 10, 2004, 03:38 PM
Hmm... could this possibly be used with trigger crates to give the level a different layout each time?

Violet CLM
Mar 10, 2004, 03:40 PM
Trigger crates, trigger zones... whatever. Sure.

Radium
Mar 10, 2004, 03:43 PM
Trigger zones would make the level different for every player. That could get strange.

Risp_old
Mar 10, 2004, 05:02 PM
It would be interesting to do that, since then you could have a different layout every time, and if advanced enough it could even be used to generate simple mazes.

mikeejimbo
Mar 10, 2004, 05:39 PM
Trigger zones would make the level different for every player. That could get strange.

You're assuming that it will be in a multiplayer level in that case.