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
Can't Move? #295468
10/25/09 16:08
10/25/09 16:08
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I just finished updating my C-Script to Lite-C.

Previously, I had just a camera in the level, and when my level loaded I could just hit the zero "0" key and then move around with the arrow keys.

But now when I load my level I can't move at all, and hitting "0" does nothing.

Anyone have any ideas what happened?

Re: Can't Move? [Re: Galen] #295478
10/25/09 16:51
10/25/09 16:51
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
*bump*

anybody?

Re: Can't Move? [Re: Galen] #295479
10/25/09 16:54
10/25/09 16:54
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
DO you set a player?

If yes: the camera just switches to the player wink.

Re: Can't Move? [Re: Rei_Ayanami] #295480
10/25/09 16:58
10/25/09 16:58
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
Thank you for the reply!

I didn't set a player. I just have a camera position in my level, which is the one I want to be able to move around with.

Re: Can't Move? [Re: Galen] #295482
10/25/09 17:06
10/25/09 17:06
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Hm, do you set the cam postion(in a while loop) in any function?

Re: Can't Move? [Re: Rei_Ayanami] #295484
10/25/09 17:12
10/25/09 17:12
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
I don't. Here's my main level script:

#include "gid01-c.c"
#include "nogouraud-c.c"
#include "sky01-c.c"
#include "tree1-c.c"



STRING* level_str = "GLfirst.WMB";





var myscreenshot_count=0;

function myscreenshot()
{
file_for_screen("shot.png",myscreenshot_count); // saves a screenshot to "shot123.png"
myscreenshot_count+=1;
}



function main()
{

freeze_mode = 1;

gid01_level_state = gid01_level_not_loaded;

warn_level = 2; // announce bad texture sizes and bad wdl code

mouse_mode = 0;

wait(3);

max_entities = 6000;

level_load(level_str);

wait(3);

gid01_level_state = gid01_level_loaded;

video_set(1920,1200,0,1);

d3d_antialias = 1;




on_s = myscreenshot;



freeze_mode = 0;



while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
freeze_mode = 1; // pause the game
while(gid01_level_state != gid01_level_loaded) { wait(1); }
freeze_mode = 0; // resume the game
}
wait(1);
}

}



The gid01 is the default .c template--I just made a copy and dropped it into my work directory.

The nogouraud, sky01 and tree1 are really simple, and in my testing I've tried running the level without those, and removing them has no effect on my level-loading...

Last edited by Galen; 10/25/09 17:15.
Re: Can't Move? [Re: Galen] #295490
10/25/09 17:48
10/25/09 17:48
Joined: Aug 2005
Posts: 336
Connecticut
Galen Offline OP
Senior Member
Galen  Offline OP
Senior Member

Joined: Aug 2005
Posts: 336
Connecticut
*bump*

EDIT: okay, this has been resolved in this thread.

Thanks for the help though!

Last edited by Galen; 10/25/09 19:30.

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