Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Nymphodora), 1,470 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Split screen? [Re: LemmyTheSlayer] #436740
01/31/14 22:58
01/31/14 22:58
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
That certainly makes sense. I looked in the manual/ tutorial for loop examples, but nothing with the "loop" keyword...

Re: Split screen? [Re: themuzikman] #436743
01/31/14 23:35
01/31/14 23:35
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
LemmyTheSlayer Offline
Junior Member
LemmyTheSlayer  Offline
Junior Member

Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
i would advise you to do the whole tutorial.
presumably 3dgs changed a lot in the last 10 years.


SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
Re: Split screen? [Re: LemmyTheSlayer] #436746
02/01/14 00:54
02/01/14 00:54
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
I see it's done with while and wait as I thought, but even though adding it to my script changes the camera angle a little bit on the right screen, it still isn't following the player...

Re: Split screen? [Re: themuzikman] #437263
02/13/14 11:59
02/13/14 11:59
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Maybe you already fixed this themuzikman, otherwise just add this in the while in your player code;

Code:
vec_set (camera.x, vector (-200, 50, 70)); // simple camera code, play with these values
vec_rotate (camera.x, my.pan); // this example creates a camera that sits 200 quants behind the player and 50 quants to the left
vec_add (camera.x, my.x); // and 70 quants above its origin
camera.pan = my.pan; // the camera will have the same pan angle with the player

vec_set (camera2.x, vector (-200, -50, 70)); // simple camera code, play with these values
vec_rotate (camera2.x, my.pan); // this example creates a camera that sits 200 quants behind the player and 50 quants to the right
vec_add (camera2.x, my.x); // and 70 quants above its origin
camera2.pan = my.pan; // the camera will have the same pan angle with the player


Re: Split screen? [Re: Reconnoiter] #437315
02/14/14 03:43
02/14/14 03:43
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Thank you very much! I tried this and it seems to function properly except that camera 2 doesn't follow my mouse movement on the Y axis... I thought if I added

Code:
vec_set(camera.y,player.y);
vec_add(camera.y,offset1);

etc..



that it might work, but it makes no difference at all... Just one step away from getting this thing to work! Haha

Re: Split screen? [Re: themuzikman] #437339
02/14/14 11:38
02/14/14 11:38
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Ah yeah the problem is that the code still only takes the player.pan into account. Try this (I have tested it, it should work with you to):

Code:
ANGLE player_angle;
player_angle.pan = player.pan;
player_angle.tilt = player.tilt; //or camera.tilt, depends on what you move with mouse_force.y
player_angle.roll = player.roll;
vec_set (camera.x, vector (-200, 50, 70)); // simple camera code, play with these values
vec_rotate (camera.x, player_angle); // this example creates a camera that sits 200 quants behind the player and 50 quants to the left
vec_add (camera.x, player.x); // and 70 quants above its origin
camera.pan = player.pan;
camera.tilt = player.tilt; //you can leave this out if you move camera.tilt directly through mouse_force.y

vec_set (camera2.x, vector (-200, -50, 70)); // simple camera code, play with these values
vec_rotate (camera2.x, player_angle); // this example creates a camera that sits 200 quants behind the player and 50 quants to the right
vec_add (camera2.x, player.x); // and 70 quants above its origin
camera2.pan = player.pan;
camera2.tilt = player.tilt; //you can leave this out if you move camera.tilt directly through mouse_force.y


Re: Split screen? [Re: Reconnoiter] #437412
02/16/14 02:11
02/16/14 02:11
Joined: Jan 2012
Posts: 36
T
themuzikman Offline OP
Newbie
themuzikman  Offline OP
Newbie
T

Joined: Jan 2012
Posts: 36
Thanks, I forgot that 'tilt' is the value for angling the camera up and down as pan is for moving it left and right...

However, it's still not working, but I will start a new script tonight from scratch and see if I can figure out why it's not working over here...

Re: Split screen? [Re: themuzikman] #437418
02/16/14 11:22
02/16/14 11:22
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Take a good look at 'mouse_force.y' in your script. And at camera.tilt and player.tilt. I advise you to do the Lite-c tutorial to refresh your memory wink. It should not take you to long.

Page 3 of 3 1 2 3

Gamestudio download | chip programmers | 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