Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, kzhao, 7th_zorro), 714 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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