Posted By
|
Message
|
»xerus
Registered 28/06/2002
Points 675
|
18th July, 2006 at 16:51:25 -
Im trying to put together a map system following the Map Engine here: http://www.create-games.com/download.asp?id=5441
The problem I'm running into is that I want a much larger map than the one in that tutorial... a grid thats 30 x 28. Is there a way to do this without using 840 active objects to cover the map? The game obviously takes a performance hit when dealing with that many objects. Is there a way to maybe use this overlay redux object I've been hearing so much about?
(I'm using MMF2)
n/a
|
Werbad
Registered 18/09/2002
Points 235
|
19th July, 2006 at 07:45:53 -
Yes, you can do it with Overlay Redux, but im too lazy to make an example right now...
n/a
|
..:.Phox.:..
Registered 18/02/2005
Points 646
|
19th July, 2006 at 12:47:26 -
then why did you even answer? lol
Profile edited as it messed the layout of the site up.
|
Fifth Quadruped
Registered 07/05/2003
Points 5818
|
19th July, 2006 at 15:41:37 -
As with most problems in life, this one can be solved with the Text Blitter.
Instead of letters, you make its image into all the different possible rooms, and then you have it output a series of strings that are the uncovered map.
Simple, no?
Go Moon!
|
»xerus
Registered 28/06/2002
Points 675
|
19th July, 2006 at 16:05:13 -
The text blitter idea is clever... but I think I've already solved my problem.
I just made two fast loops that cycle through every location on the map, and if that room on the map hasn't been explored yet then a map blocker object is created at the correct position based on the fast loop index. So all the map objects are created when the map is called, and destroyed when the map is hidden.
I couldn't get the overlay redux to work. I tried to paste an object into it but it wasnt doing anything...
n/a
|
DanielRehn
Registered 18/09/2002
Points 139
|
20th July, 2006 at 03:42:22 -
The overlay Redux object is definetly a good method for solving this... Just make sure that it's made visible and that it's updated after you have pasted you level..
n/a
|
..:.Phox.:..
Registered 18/02/2005
Points 646
|
20th July, 2006 at 17:41:08 -
内森 (男子名
Profile edited as it messed the layout of the site up.
|
DaVince This fool just HAD to have a custom rating
Registered 04/09/2004
Points 7998
|
22nd July, 2006 at 10:32:41 -
O RLY?
Isn't it in the forum rules to speak English?
Old member (~2004-2007).
|
Bogo47 Possibly Insane
Registered 30/10/2002
Points 2382
|
4th September, 2006 at 17:16:21 -
Quack! Sorry to revive this topic, but I made that map system and I would like to apologise for it's crapness.
I don't know what all this text blitter overlay redux gobbldeygook is about (though I probobly should) but if you're going to make a map system like that do not have the map running in every frame, use a subapp please.
n/a
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
4th September, 2006 at 19:29:12 -
"Yes, you can do it with Overlay Redux, but im too lazy to make an example right now... "
No offense dude, but is this your default answer to EVERYTHING? I think I've seen this same response to different questions 10 times before lol.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
Werbad
Registered 18/09/2002
Points 235
|
5th September, 2006 at 02:36:45 -
Are you stupid? This is the only time i ever wrote that! If im wrong, please show me where i did it before
n/a
|
Del Duio Born in a Bowling Alley
Registered 29/07/2005
Points 1078
|
5th September, 2006 at 08:22:51 -
Not for overlay redux per se, but yeah I've seen similar posts before. I said no offense before but now that I think about it I don't suppose you COULDN'T take offense to that. Sorry about that, Werebad.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
|
Werbad
Registered 18/09/2002
Points 235
|
5th September, 2006 at 08:28:34 -
.....
n/a
|
X_Sheep I had a custom rating before it was cool
Registered 01/03/2004
Points 1313
|
5th September, 2006 at 08:46:57 -
What I think would be a good method is to reverse Bogo47's Map engine. Instead of using Black objects to cover the map, you could divide the map itself into active objects (you can use different ones for map pieces that look different, like the start of a tunnel or the corner of a room) and have them become visible when that part of the map is explored.
(be sure to turn off Visible at Start for the map pieces, or the full map will show up when it's loading)
a/n
|
Bogo47 Possibly Insane
Registered 30/10/2002
Points 2382
|
5th September, 2006 at 14:19:20 -
Actually I tried that at first but you end up having over 100 seperate active objects just for the map and then you have to use a qualifier for all of em and stuff so I would see that as being less convenient really.
n/a
|
|
|