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
0 registered members (), 16,302 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
code problems when changing levels #140715
07/12/07 14:01
07/12/07 14:01
Joined: Sep 2006
Posts: 41
B
blakegoat Offline OP
Newbie
blakegoat  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 41
i have created a game with now two levels, however i have one huge problem. Individually each of the levels run fine, but when i run them together through the first level (using the levels.wdl script) a number of vital texts that i included in the second level do not appear when the player progresses to the second level. it is as though the main loop of code from the second level does not work.

?? any help would be extremely appreciated.

Re: code problems when changing levels [Re: blakegoat] #140716
07/12/07 15:19
07/12/07 15:19
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Every .wdl file used by the second level has to be included in the script which runs the first level.
Basicly you have to think differently:
You run one script and not a level.
The script you run loads the level etc.
Thus I recommend to have one wdl file with one main function and all the stuff included which is needed through out the whole game.
The main function simply just loads the first level and another function (called by an entity e.g.) loads the next level.


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