Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Re: Third Person Camera System [Re: Locoweed] #53653
09/23/05 23:15
09/23/05 23:15
Joined: Jun 2004
Posts: 241
muralist Offline
Member
muralist  Offline
Member

Joined: Jun 2004
Posts: 241
Thank you Sir.

Re: Third Person Camera System [Re: muralist] #53654
10/22/05 17:13
10/22/05 17:13
Joined: Jun 2002
Posts: 72
PA
AppollyonKin Offline
Junior Member
AppollyonKin  Offline
Junior Member

Joined: Jun 2002
Posts: 72
PA
This may be a dumb question but I am not a great scripter. So to add this to my own animaiton codes, I would just have to tac the "if camera max dist, else cam max dist" lines to the end of my animation lines correct?

Re: Third Person Camera System [Re: AppollyonKin] #53655
10/22/05 19:45
10/22/05 19:45
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
wonderful, just what i need. by any chance, could you implement a zoom when turning the mouse wheel?

Re: Third Person Camera System [Re: broozar] #53656
10/22/05 20:13
10/22/05 20:13
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Code:

...
var mouse_wheel = 0;
mouse_wheel = sys_metrics(75); // see if the mouse has a scrolling wheel or not
while (1)
{
if (mouse_wheel != 0) // wheel present?
{
// then use the wheel to zoom in and out
camera.arc -= 0.1 * mickey.z * time;
}
else // wheel not detected
{
// use the "Y" and "H" keys to zoom in and out
camera.arc -= (key_y - key_h) * time;
}
camera.arc = clamp(camera.arc,20,90); // limit camera.arc to 20..90 degrees
wait (1);
}
...



Re: Third Person Camera System [Re: Lion_Ts] #53657
10/22/05 21:17
10/22/05 21:17
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
thx, but where to put it? it produces errors everywhere i try...

[EDIT] thx, found it out by myself

[EDIT2] works great, though it does not do exactly what i wanted.
you cahnged the camera arc, so it appears to be a zoom function. thatīs what i wrote, right, but i meant something different.
i do not want the arc changed. i want the camera to come closer to the player/go back without changing the FoV.

damn, my english really needs some revision, i cannot express my thoughts...

Last edited by DaBro0zar; 10/22/05 21:26.
Re: Third Person Camera System [Re: broozar] #53658
10/24/05 16:51
10/24/05 16:51
Joined: Jun 2002
Posts: 72
PA
AppollyonKin Offline
Junior Member
AppollyonKin  Offline
Junior Member

Joined: Jun 2002
Posts: 72
PA
Just replace cam.arc, with camMaxDistStand adn that should move the camera closer to the player if thats what u mean.

Re: Third Person Camera System [Re: AppollyonKin] #53659
10/27/05 19:19
10/27/05 19:19
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
thatīs it, many thanks to all you coders out there!!

Re: Third Person Camera System [Re: bupaje] #53660
02/14/06 07:08
02/14/06 07:08
Joined: May 2005
Posts: 138
jamrud khatulistiwa
Kotakide Offline
Member
Kotakide  Offline
Member

Joined: May 2005
Posts: 138
jamrud khatulistiwa
nice camera contribution

Page 4 of 4 1 2 3 4

Moderated by  adoado, checkbutton, mk_1, Perro 

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