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 2 of 2 1 2
Re: Problem with WED [RESOLVED] [Re: joshuafoulk] #161667
10/17/07 21:56
10/17/07 21:56
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
I know what the problem was now...

if you look at my code, you will see that I didn't have
wait(2);
after I loaded my level...

Thanks

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

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Sorry I understood you wrong. I thought your script worked and you saved your game when you ran your script.

Try this:
Code:
function main()
{
video_mode = 7;
level_load ("firstgame.wmb");

wait(2); // This waits until the level is loaded
camera.x = -178.42;
camera.y = 220;
camera.z = -131.31;
camera.pan = -201.01;
camera.tilt = -194;

}



EDIT: While I was writing this you already noticed that

-----
300 posts

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

Joined: Oct 2007
Posts: 12
Is there any way to have my camera's start position defined within my level file created with WED? It seems pretty tedious to have to figure out all of the start position for every level in my game and code it manually.

Re: Problem with WED [Re: joshuafoulk] #161670
10/17/07 22:11
10/17/07 22:11
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
For setting a camera position in WED you can use Object -> Add Position. But I never use that so I can't help you if you'll have problems with that. I set camera positions always in scripts.

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

Joined: Oct 2007
Posts: 12
Okay, thank you...

Does anyone else use the Add Position feature in WED to set their camera position for a level?

Re: Problem with WED [Re: joshuafoulk] #161672
10/17/07 23:15
10/17/07 23:15
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Joshua !

I loaded your zip. The code was incomplet but I think I know what your
not doing

When the level opens...press 0 (zero) and then the down arrow.
You should see your plate. If you had made a cube you would have seen a wall.

When I added the camera coordinates I pressed 0 and backed away .
The camera was level with the plate.

The simple thing to do is to add a position in the level using WED.
Then with your script, change the angles of the camera.
( a cube will help also)

I played with your code and this should work.
Code:
function main()
{
video_mode = 7;
level_load ("firstgame.wmb");
wait (2);
// The position was loaded in WED tested and removed
// these position shoul work.
camera.x = -500;
camera.y = 0; // at the center
camera.z = 500;
camera.pan = 0;
camera.tilt = 310; // look down

}



Hope this helps.

Michel in Ottawa

Last edited by Ottawa; 10/17/07 23:56.
Re: Problem with WED [Re: joshuafoulk] #161673
10/17/07 23:54
10/17/07 23:54
Joined: Apr 2006
Posts: 28
S
sky Offline
Newbie
sky  Offline
Newbie
S

Joined: Apr 2006
Posts: 28
I am very new to this too but I find that Add position works fine.You need to check all views to make sure its inside the level.

Re: Problem with WED [Re: sky] #161674
10/18/07 00:09
10/18/07 00:09
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
I finally got it to work by setting my camera angles (like you mentioned, Ottawa), but I can't get it to work by setting the default position of the camera in WED. Oh well for now I guess. I just don't understand how they were able to accomplish this in the workshop examples (like workshop08 of the Lite-C workshops)...

Room... [Re: joshuafoulk] #161675
10/18/07 01:00
10/18/07 01:00
Joined: Oct 2007
Posts: 12
J
joshuafoulk Offline OP
Newbie
joshuafoulk  Offline OP
Newbie
J

Joined: Oct 2007
Posts: 12
I figured out why this wasn't working for me...

I needed to have a room to put the camera in. I did and object->add position, positioned the camera within a hollow and it worked...

Now I just need to learn how to do 3rd person cameras, etc..

thanks to all

Re: Room... [Re: joshuafoulk] #161676
10/19/07 12:59
10/19/07 12:59
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Joshua!

Yes the room helps.

For camera positions,look at the code in

Gstudio7/template6/code

Patience and pratice is the way

Ottawa

Page 2 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