Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (Dico), 16,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 3
reset game #350855
12/19/10 19:35
12/19/10 19:35
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
hi,
is it possible to reset the game, like 'exit' for quit the game ?
(without leave it and relaunch it).

searched out but no result :|
thanks

Re: reset game [Re: ayks] #350856
12/19/10 19:48
12/19/10 19:48
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
create a function which resets your variables and reloads the first level if any
then call this function


Visit my site: www.masterq32.de
Re: reset game [Re: MasterQ32] #350857
12/19/10 20:06
12/19/10 20:06
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Richi007's suggestion is the right approach, but when you are too lazy for this kind of stuff, make a game_save in your main function or somewhere else (f.i. after loading your first level).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: reset game [Re: Superku] #350859
12/19/10 20:13
12/19/10 20:13
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Superku
but when you are too lazy for this kind of stuff, make a game_save in your main function or somewhere else (f.i. after loading your first level).

Damn, why didn't someone told me about this?! This is an awesome idea.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: reset game [Re: WretchedSid] #350865
12/19/10 20:49
12/19/10 20:49
Joined: Sep 2009
Posts: 155
France
ayks Offline OP
Member
ayks  Offline OP
Member

Joined: Sep 2009
Posts: 155
France
ok, thanks for the fast answers / tips laugh

Last edited by ayks; 12/19/10 20:50.

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1