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
Level_load problem...! #272369
06/17/09 18:29
06/17/09 18:29
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline OP
Junior Member

Joined: Aug 2007
Posts: 74
Hi,

Whenever i am trying to load a level using level_load, It works great, and it loads my specified level.

But if I try to load it again after the first loading, it has some missing in the level. for example the camera postions...They are not where they should be.

What is wrong? Is there something that I should do after level_load? Am I missing something?!


I don't care!
Re: Level_load problem...! [Re: Mahdi] #272373
06/17/09 19:02
06/17/09 19:02
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
a wait of 2 frames..
and you need to setup the camera, entities... after each level_load..

See first tip to level_load in the manual...


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Level_load problem...! [Re: Espér] #272394
06/17/09 20:32
06/17/09 20:32
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
try this(untested)
Code:
var tempcamx = 0; //change these to your camera position
var tempcamy = 0;
var tempcamz = 0;

function initcamera() //call this after level_load
{
    camera.x = tempcamx;
    camera.y = tempcamy;
    camera.z = tempcamz;
}


Re: Level_load problem...! [Re: the_mehmaster] #272421
06/18/09 02:45
06/18/09 02:45
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline OP
Junior Member

Joined: Aug 2007
Posts: 74
No no,

it is not that easy.

I mean when I load a level, it should load all of it's scripts, yes?

And one of my scripts is my camera script, my aciotns...

Also sometime when I am trying to load the level, It give me action error:

<M_player>: Action not found.

But <m_player> action is there, in the new level script.



Last edited by Mahdi; 06/18/09 02:48.

I don't care!
Re: Level_load problem...! [Re: Mahdi] #272537
06/18/09 13:20
06/18/09 13:20
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
No new level script. Load a level doesn't load a new script.
The script attached to a level in WED only loads when you start the level using RUN in WED.
Loading the level per level_load doesn't start the attached script.


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