Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » JCS & Scripting

Randomization

mikeejimbo

JCF Member

Joined: Apr 2003

Posts: 187

mikeejimbo is doing well so far

Mar 10, 2004, 07:46 AM
mikeejimbo is offline
Reply With Quote
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?
__________________
<BR>
Douglas Adams!
<BR>
42!
<BR>
Fnord!
Lem_Gambino

JCF Member

Joined: Jun 2002

Posts: 1,527

Lem_Gambino is doing well so far

Mar 10, 2004, 09:06 AM
Lem_Gambino is offline
Reply With Quote
The enemies drop powerups randomly. But I'm no JCS expert so I can't really help you.
__________________
This space for rent.
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,090

Violet CLM has disabled reputation

Mar 10, 2004, 11:24 AM
Violet CLM is offline
Reply With Quote

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

JCF Member

Joined: Apr 2003

Posts: 187

mikeejimbo is doing well so far

Mar 10, 2004, 12:46 PM
mikeejimbo is offline
Reply With Quote
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?
__________________
<BR>
Douglas Adams!
<BR>
42!
<BR>
Fnord!
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,090

Violet CLM has disabled reputation

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

JCF Member

Joined: Apr 2003

Posts: 187

mikeejimbo is doing well so far

Mar 10, 2004, 02:36 PM
mikeejimbo is offline
Reply With Quote
Ok then, thanks.
__________________
<BR>
Douglas Adams!
<BR>
42!
<BR>
Fnord!
Radium

JCF Éminence Grise

Joined: Jul 2002

Posts: 12,275

Radium is an asset to this forum

Mar 10, 2004, 03:38 PM
Radium is offline
Reply With Quote
Hmm... could this possibly be used with trigger crates to give the level a different layout each time?
__________________
GENERATION 22: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

<i>"This picture shows me that the gray bird man is just a bully and picks on smaller birds. Just because he has no friends and takes it out on others smaller than him to look good. I can see in the parrats eyes that it does however have a understanding of the gray bird man and is upset about getting cut."</i> - Speeza on cartoon birds.
Violet CLM

JCF Éminence Grise

Joined: Mar 2001

Posts: 11,090

Violet CLM has disabled reputation

Mar 10, 2004, 03:40 PM
Violet CLM is offline
Reply With Quote
Trigger crates, trigger zones... whatever. Sure.
Radium

JCF Éminence Grise

Joined: Jul 2002

Posts: 12,275

Radium is an asset to this forum

Mar 10, 2004, 03:43 PM
Radium is offline
Reply With Quote
Trigger zones would make the level different for every player. That could get strange.
__________________
GENERATION 22: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

<i>"This picture shows me that the gray bird man is just a bully and picks on smaller birds. Just because he has no friends and takes it out on others smaller than him to look good. I can see in the parrats eyes that it does however have a understanding of the gray bird man and is upset about getting cut."</i> - Speeza on cartoon birds.
Risp_old

JCF Member

Joined: Mar 2003

Posts: 3,992

Risp_old is doing well so far

Mar 10, 2004, 05:02 PM
Risp_old is offline
Reply With Quote
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.
__________________
<img src="http://i25.photobucket.com/albums/c100/Ashton_JX/the_web/stupid_prize.gif" border="0" alt="The rodent thingy wasn't worthy.">
I would not want anyone having sex with my cocktail. ~ Radium
mikeejimbo

JCF Member

Joined: Apr 2003

Posts: 187

mikeejimbo is doing well so far

Mar 10, 2004, 05:39 PM
mikeejimbo is offline
Reply With Quote
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.
__________________
<BR>
Douglas Adams!
<BR>
42!
<BR>
Fnord!
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 12:05 PM.