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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
levels affecting code,.. #140712
07/12/07 13:59
07/12/07 13:59
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: levels affecting code,.. [Re: blakegoat] #140713
07/12/07 18:59
07/12/07 18:59
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Only the first Main used is the one where all scripts should be attached to so if you have scripts from level 2, transfer them to level 1 and just make sure your level jumps are in the rifgt order.
When running as one scenario, combine all scripts into a Master script (add includes from other levels)

Re: levels affecting code,.. [Re: Nems] #140714
07/14/07 15:01
07/14/07 15:01
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
The GS engine only runs one script. So if you have attached another one in the second level, but you start your game with the first and come then into the second one, there won't be any script or main loaded then.


Moderated by  HeelX, rvL_eXile 

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