3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Restaring a game to avoid loading time  (Read 1076 times)

« on: July 06, 2011, 09:05:30 AM »
Is this possible?
I made a car game that you have to bump things and they desapear. After the games ends I want to replay it, but without the loading bar (takes too long to load).

Is there a (easy) way to reset the objects in the game to start the game from the beginning?

Thank you!

zag

« Reply #1 on: July 06, 2011, 07:15:28 PM »
Take any "Event" object and connect it to everything that has its state changed thru-out the course of the program and set what the event does to each object as "Reset" (this is where you set stuff like "Show", "Hide", "Start", "Stop", etc.).
« Reply #2 on: July 07, 2011, 11:42:26 AM »
Take any "Event" object and connect it to everything that has its state changed thru-out the course of the program and set what the event does to each object as "Reset" (this is where you set stuff like "Show", "Hide", "Start", "Stop", etc.).
Thanks! I will try it this weekend :)

Just asking... is there other way to accomplish it? I mean, just in case that this solution doesn't fit for my game.

P.D.: Thank you again Zag!!!  ;D
« Reply #3 on: July 07, 2011, 06:13:50 PM »
I'm sorry but I need to clarify.

The game is made of 3 different stages.
The first one is a splash screen with an eventoninput to go to the game itself (the 3rd one is to give a price to the winner).
I'm using a exitfade to go from the splash screen to the game... Using the event with the reset, can it go to the splash screen? or it will reset just for the part of the game where I'm using it?

zag

« Reply #4 on: July 08, 2011, 07:02:12 PM »
The way I said will put all objects in whatever file you use this method in back to their original states. So if you use an exit-fade, no it will not go back to the splash screen. What I suggest is you have all the objects in your game set to begin stopped and have the splash screen in the same project so you can reset without loading.
« Reply #5 on: July 09, 2011, 06:30:55 PM »
make some attempt!


you're welcome fred121!!
« Reply #6 on: July 16, 2011, 09:21:24 AM »
if the game is gonna be the same each time the player wins or looses, then load the entire game... splash screen and all... show only the splash screen...  hide the splash screen and  start the game when the player hits go (or whatever)... forget about the fade and show the ending screen when he /she wins or looses... reset the objects and show the splash screen again to restart the entire process...

--Mike
Pages: [1]