Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Is there anyway I can create an SM64 map system in, MMF2?
United Kingdom
Gamesmonkey
Posted: May 2 2009, 11:35 AM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


Like, I enter a level, collect a certain amount of something like for example Stars, then keep those stars and when I collect a certain amount I go back to a map and the next level is now available?

Also I would like to know if there is a way so I can keep my inventory and health stats, like in Paper Mario

-sigh- also a way to save.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 2 2009, 12:29 PM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


Stars: Set a variable counting the number of stars you already collected.
If variable stars is equal or larger than (for example 5), go to the map room and set a global alterable value (maybe want to call it something like Level X opened)
Example:
CODE
Go to frame Map
Set Global Alterable Value A (Level 2 opened) to 1


On the Map frame, perform a check if "Level 2 opened" equals 1. If it does, allow the player to enter the level, otherwise don't. Simple as that.


Your best bet on saving things would be simply using a save file. Like you'd just take your Global Values and write them to a file. Let's call it gamesave.sav.

gamesave.sav would look like this right now:
CODE
lives=5
totalstars=5
level2opened=1


If you keep it like this, people could easily edit the savegame, so you might want to encrypt it using the Blowfish extension.

On the load file event, check for each variable and read out its value.
CODE
Set Global Value Lives to (lives variable in savefile)
Set Global Value Total Stars to (totalstars variable in savefile)

Go on. Actually you're just transferring variables from the game to a file for saving and vice-versa for loading.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
United Kingdom
Gamesmonkey
Posted: May 2 2009, 02:49 PM
Quote Post


More badass than anything else ever
[*][*]

Group Icon
Group: Members
Posts: 1499
Member No.: 3336
Joined: 21-February 07

Status: (0d) [--]


The first thing doesn't work.


--------------------
user posted imageuser posted image
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Unspecified
Miaxis
Posted: May 2 2009, 04:53 PM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


Well it works if you're doing it right.

also a bit more explanation on what doesn't work would be nice
so what exactly are you doing


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0462 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.29 ]