Cleberson Posted April 5, 2012 Report Share Posted April 5, 2012 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: Thx. Link to comment Share on other sites More sharing options...
Asuma Posted April 5, 2012 Report Share Posted April 5, 2012 What program are you using? Link to comment Share on other sites More sharing options...
BlazefireLP Posted April 5, 2012 Report Share Posted April 5, 2012 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 More sharing options...
Cleberson Posted April 5, 2012 Author Report Share Posted April 5, 2012 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 More sharing options...
Floofy Posted April 5, 2012 Report Share Posted April 5, 2012 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 More sharing options...
TailsSena Posted April 5, 2012 Report Share Posted April 5, 2012 I don't have ini++ and I have a save file system. It's still buggy, but I'm getting it working. Link to comment Share on other sites More sharing options...
Cleberson Posted April 5, 2012 Author Report Share Posted April 5, 2012 ITS WORKING :3 thx guys!, for help! My face now, is like this: Ahem, thx again Link to comment Share on other sites More sharing options...
Recommended Posts