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
3 registered members (NewbieZorro, TipmyPip, AndrewAMD), 14,749 guests, and 7 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
Page 1 of 2 1 2
Problem with WED #161657
10/17/07 21:12
10/17/07 21:12
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
I have downloaded the trial version of Game Studio to see if I can get the hang of making a decent game with it and I'm so far off right now...

I created a simple level with just one plate (textured using the default brick texture).

My problem is that when I run my level, I see nothing except for the blue background.

I have attached my script (firstgame.c) to the level through the map properties dialog box, and I have oriented my camera, but i do not see anything when I build and run my level.

Any ideas on what I might be missing? Below is a link to the file:

My First Game (Zip)

Re: Problem with WED [Re: joshuafoulk] #161658
10/17/07 21:16
10/17/07 21:16
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
You must press the "0"-key before moving the camera.

Re: Problem with WED [Re: Lukas] #161659
10/17/07 21:21
10/17/07 21:21
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
But why doesn't the level load so that the camera is in the location that I set it within WED? Do I have to setup the camera so that it is pointing where I want it to within my Lite-C code?

In the examples, most of the workshops have WED levels that load with the camera in the correct location without repositioning th camera.

Joshua

Re: Problem with WED [Re: joshuafoulk] #161660
10/17/07 21:30
10/17/07 21:30
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
How did you set the camera in WED? I don't see any camera position in your level...

Re: Problem with WED [Re: Lukas] #161661
10/17/07 21:37
10/17/07 21:37
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Normally for setting a camera position in WED you can use Object -> Add Position. But I don't use that very often and I just tried that and it didn't work so I can't help you.

But you can easily set the camera position in your script

Re: Problem with WED [Re: Lukas] #161662
10/17/07 21:39
10/17/07 21:39
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
Okay, this is really frustrating b/c it works in the examples, but not in my code...

I used the "0" key and added a watch to get the values that I needed for my x, y, z, pan, and tilt variables for my camera.

I put those values in my code like this:

function main()
{
video_mode = 7;
level_load ("firstgame.wmb");

camera.x = -178.42;
camera.y = 220;
camera.z = -131.31;
camera.pan = -201.01;
camera.tilt = -194;

}

but when I save and run it again (with the watch still on camera) my camera isn't moved accordingly...

Am I missing something here?

Joshua

Re: Problem with WED [Re: joshuafoulk] #161663
10/17/07 21:42
10/17/07 21:42
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Of course you must load it.

Re: Problem with WED [Re: Lukas] #161664
10/17/07 21:45
10/17/07 21:45
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
Load the camera? I'll look at the workshops again...

Joshua

Re: Problem with WED [Re: joshuafoulk] #161665
10/17/07 21:45
10/17/07 21:45
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
No. You must load your saved game (press F3).

Re: Problem with WED [Re: Lukas] #161666
10/17/07 21:51
10/17/07 21:51
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
What saved game?

I'm just trying to create a level using WED and have the camera positioned to see the thing when I run my script.

Joshua

Page 1 of 2 1 2

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