JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   JCS & Scripting (http://www.jazz2online.com/jcf/forumdisplay.php?f=5)
-   -   Randomization (http://www.jazz2online.com/jcf/showthread.php?t=10220)

mikeejimbo Mar 10, 2004 08:46 AM

Randomization
 
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 10: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 12:24 PM


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 01: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 02:51 PM

Yes, all the same speed. Adding a random wait will just tilt the odds.

mikeejimbo Mar 10, 2004 03:36 PM

Ok then, thanks.

Radium Mar 10, 2004 04: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 04:40 PM

Trigger crates, trigger zones... whatever. Sure.

Radium Mar 10, 2004 04:43 PM

Trigger zones would make the level different for every player. That could get strange.

Risp_old Mar 10, 2004 06: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 06:39 PM

Quote:

Originally Posted by Radium
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.


All times are GMT -8. The time now is 08:31 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online