well i'm trying to create a super mario bros style world map, like when a path suddenly clears and the other levels are still replayable. is there some way to create this? any tutorials for this?
well i'm trying to create a super mario bros style world map, like when a path suddenly clears and the other levels are still replayable. is there some way to create this? any tutorials for this?
There's a million ways to do this...! Don't know about tutorials though?
I can't be bothered to type the entire method but in basics:
- have a map frame separate to each game level
- use a global value(s) to determine the progress through the game (and also so the map frame knows what should be open) i.e. once you complete level 2, set GVA to 2, for example - then on the map level, have it so that start of level, and GVA=2, allow that portion of the map to be open.
- use a custom movement engine which travels between the paths you create - quite simple.
- if you plan on multiple paths, then a single GV will only work if you assign a number to every possible outcome (which could be lots of numbers) it'd be much easier to just use global flags, or a set of GVs for each level progression option.
That should get you started, but maybe there is a tutorial lying around somewhere that someone will dig up...
There's an extension for storing global variables(so you have more than the few default ones), andI thinkyou canalsosave files with that (great for savegames!).
For the paths I advice the advanced path movement, as it can automatically find paths and handles pretty much the whole thing for you.
You can have an unlimited number of global values, what do you mean by "few"?





Common prejudice... alterables are limit to A-Z, but global values aren't.![]()
Meh you're right. I'm getting too old for this.. in my days you had 10, or even worse, you had four players, each having score and lives and that's all you had to communicate between frames :grin:
Nevermind that then. But still being able to save and load that data with one action is very convenient. And if you use something like the "Named variable object" it makes using variables a lot nicer, as you can address them by string, allowing you to for example build the name of a variable from other information, e.g.
"level_cleared"+Str$(level)
Lol - you and me both mate... got to love Klik n PlayOriginally Posted by Random
![]()
I'm getting all melancholic here![]()