Posted By
|
Message
|
JackNtheBox
Registered 21/05/2003
Points 143
|
19th December, 2003 at 03:16:06 -
I was playing with the idea of making a game that had 99 rooms created at random. It would be an overhead view similar to Zelda for the SNES. I wanted to permanently make 99 rooms myself. But where I need help is in how to code the exits. This is kind of hard to describe. All my exits will be in the same places, but the room the exits lead to are randomized at the title screen when the player chooses to begin the game. All I wanted to know is how to generate random room #'s for each exit. Thanks again. Btw, I'm not making 99 frames for the 99 rooms....instead to save space, more than room will exist on one frame. Another question is how can I make a midi file loop over frames? What object do I need to use and is there a tutorial of how to use it? Thanks again.
pretend it's cereal and play with it
|
David Newton (DavidN) Invisible
Registered 27/10/2002
Points 8322
|
19th December, 2003 at 03:31:12 -
I'm not sure if DMC2 can actually play MIDI files, but it's a very good sound extension - get that from www.izzyonline.com for your looping over frames problem.
As for the exits... I take it that essentially you want all 99 rooms to appear, but in a random order with no rooms being repeated?
I can think of a number of ways to do it, but not really the technical details... you could have each exit door have a random alterable value from 1 to 99, and each exit leads to the room of its alterable value...
That might be done by "Pick door at random + Door's Value A = 0 -> Set door's value to Counter 1, increment Counter 1. Just a thought, though.
What I did with Breakout Invaders was to construct a list of levels (in this case from 1 to 99), and pick a random level from the list then remove that item from the list each time an exit door was reached. Arguably I think this is the easier method, though it does require MMF.
http://www.davidn.co.nr - Games, music, living in America
|
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
|
20th December, 2003 at 02:38:22 -
What do you mean by random rooms? Do you mean random enemies in each room or random size and shape rooms?
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
|
HOSJ
Registered 01/07/2002
Points 669
|
20th December, 2003 at 11:40:01 -
He means he will design 99 frame-sized rooms, and when he exits each one he will enter a random one.
"They'll never find the bodies"
Ashman
|
Flaw
Registered 09/12/2003
Points 59
|
20th December, 2003 at 12:56:09 -
If you have MMF music loop over frames automatically. But I'm guessing you don't... anyway making random rooms would be easy, all you have to do is make the entire frame as dynamic as possible. Everything will be active objects at start then be turned to backdrops at the start of the frame. Use a global valuse to keep track of which door the character comes out of and so forth. If you want I can do a little tutorial on PsyClick once it launches...
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
20th December, 2003 at 16:52:22 -
And you should check to see if the level was ever created. Best way to do this is possibly with a loop comparing an INI file that stores which levels have been used.
http://www.klik-me.com
|
Flaw
Registered 09/12/2003
Points 59
|
20th December, 2003 at 22:14:10 -
you don't need ini if it's all self contained to a single frame, keep it simple stupid.
n/a
|
RapidFlash Savior of the Universe
Registered 14/05/2002
Points 2712
|
20th December, 2003 at 22:53:49 -
Unless you want to save the data so that the user truly never sees the same room.
http://www.klik-me.com
|
Weston L
Registered 16/12/2002
Points 1603
|
21st December, 2003 at 00:08:12 -
Yeah man, INIs are teh coolest things sinced sliced bread! ...so simple...yet so....so...COOL!
n/a
|
Kamasutramaster
Registered 20/12/2003
Points 11
|
21st December, 2003 at 00:58:45 -
Kamasutra is cooler, especially with Fire.
XOXOXOXOXOX to you my lovely fire!.
|
|
|