1 registered members (AndrewAMD),
1,306
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Split screen?
[Re: LemmyTheSlayer]
#436721
01/31/14 19:29
01/31/14 19:29
|
Joined: Jan 2012
Posts: 36
themuzikman
OP
Newbie
|
OP
Newbie
Joined: Jan 2012
Posts: 36
|
This is what I have in my main script:
VIEW* camera2 = {
flags = SHOW;
}
VECTOR* offset1 = {0,-distance,0};
VECTOR* offset2 = {0, distance,0};
function main() {
video_screen = 2;
video_mode = 9;
level_load("newtest.wmb");
camera.size_x = screen_size.x/2 - 2;
camera2.size_x = screen_size.x/2 - 2;
camera2.pos_x = screen_size.x/2 + 2;
camera.x = -75;
camera.y = 42;
camera.pan = 0;
camera2.x = -75;
camera2.y = -42;
//camera2.z = 50;
camera2.pan = 0;
//camera2.tilt = -29;
vec_set(camera.x,player.x);
vec_add(camera.x,offset1);
vec_set(camera2.x,player.x);
vec_add(camera2.x,offset2);
}
I'm getting a syntax error at VECTOR* offset1 = {0,-distance,0};, so I assume I just don't have something in the right order.
|
|
|
Re: Split screen?
[Re: themuzikman]
#436725
01/31/14 21:19
01/31/14 21:19
|
Joined: Mar 2010
Posts: 57 Germany, Niedersachsen
LemmyTheSlayer
Junior Member
|
Junior Member
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
|
sorry, my mistake. this is how it is supposed to look like:
VECTOR* offset1 = {
x = 0;
y = -10;
z = 0
};
VECTOR* offset2 = {
x = 0;
y = 10;
z = 0
};
SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
|
|
|
Re: Split screen?
[Re: LemmyTheSlayer]
#436736
01/31/14 22:30
01/31/14 22:30
|
Joined: Jan 2012
Posts: 36
themuzikman
OP
Newbie
|
OP
Newbie
Joined: Jan 2012
Posts: 36
|
Well I already have a player and the left camera works with it, but the right camera is static and seems to be fixed on a random coordinate...
If I try it without a player, then the two cameras are in the correct position, but unable to move the camera, obviously...
Last edited by themuzikman; 01/31/14 22:31.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|