Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

Global Counter.


Recommended Posts

Hello folks, once again I'm back with my typical topic help. Finally finished doing the engine of my game, now just need to make the Hub World to finally start the rest.

These days, I was eyeing a global counter. How would a global counter? Well, like this:

scaled.php?server=138&filename=semttulovxe.png&res=medium

Thx.

Link to comment
Share on other sites

He's using Multimedia Fusion 2.

While I'm here, I'll try answering the question.

Bassically you'll need an ini file. This INI file will contain the data that feeds into your game of which you retrieve in the events. There are various tutorials on this though so you shouldn't have a problem finding out how to do it.

The basic part of it is simple.

GlobalValueA (GlobalScore?)

Start of frame Set GlobalValueA to "String Item "GScore" Value) or something like that

Then when that application ends you want to keep that score so you then write it to the INI file.

End of Frame Write to .ini file at a specific spot.

You'd probably have to make this happen after every act so it stores it each time.

Try checking out these two:

http://sonicfangameshq.com/view.php?sec=4&id=143

http://sonicfangameshq.com/view.php?sec=4&id=94

Hope this helped.

Link to comment
Share on other sites

He's using Multimedia Fusion 2.

While I'm here, I'll try answering the question.

Bassically you'll need an ini file. This INI file will contain the data that feeds into your game of which you retrieve in the events. There are various tutorials on this though so you shouldn't have a problem finding out how to do it.

The basic part of it is simple.

GlobalValueA (GlobalScore?)

Start of frame Set GlobalValueA to "String Item "GScore" Value) or something like that

Then when that application ends you want to keep that score so you then write it to the INI file.

End of Frame Write to .ini file at a specific spot.

You'd probably have to make this happen after every act so it stores it each time.

Try checking out these two:

http://sonicfangameshq.com/view.php?sec=4&id=143

http://sonicfangameshq.com/view.php?sec=4&id=94

Hope this helped.

The first example, not help.

And i dont have the ini++ extension D:

Link to comment
Share on other sites

The first example, not help.

And i dont have the ini++ extension D:

Then you need to get said extension.

Just save the value of the counter to the ini, and have it load up when you start the game. That's about as easy as save files get.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...