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 (TipmyPip), 18,633 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
Rate Thread
changing levels #273403
06/22/09 19:26
06/22/09 19:26
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
its possible to create something like:

finished the first level;
destroy/remove everything from first level;
load level 2.

thanks in advance

Re: changing levels [Re: AttosRH] #273406
06/22/09 19:31
06/22/09 19:31
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
No need for that. confused
You can simply use "level_load" if you finished a level.

Re: changing levels [Re: Cowabanga] #273409
06/22/09 19:37
06/22/09 19:37
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
I thought the second level would be loaded withing the first xD

thank you!!

Re: changing levels [Re: AttosRH] #273575
06/23/09 13:59
06/23/09 13:59
Joined: Feb 2007
Posts: 77
São Paulo, Brazil
AttosRH Offline OP
Junior Member
AttosRH  Offline OP
Junior Member

Joined: Feb 2007
Posts: 77
São Paulo, Brazil
still got a problem, when I load level 2 the screen goes black =/

edit: I think the while loop from function main() is still running, is the some way to stop it when the second level is loaded? Thanks

Re: changing levels [Re: AttosRH] #273587
06/23/09 15:45
06/23/09 15:45
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Your main will always be running even when you change level.

You have one program which loads many levels ...one at a time.
(the game goes on!)


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: changing levels [Re: Ottawa] #273687
06/23/09 21:34
06/23/09 21:34
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
create a function wich includes the level_load and the while loop ( don´t do the while in the main function ).

write the while, so it cancelles ( break 9 when the level is finished.. and recall the function to load the next level..


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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