Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / fps-lock object on????

Author
Message
Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 1st Mar 2006 18:38
i am making an fps game and wi am having a problem with this part:

whenever i use the "lock object on" i think the camera range goes back to normal. pic attached. Can u help?

ta

"Thank you, come again!"

Attachments

Login to view attachments
Chris Franklin
19
Years of Service
User Offline
Joined: 2nd Aug 2005
Location: UK
Posted: 1st Mar 2006 18:50
use jpg

and he code should be

lock object on 1
position object 1,0.25,-0.15,0.45



SimSmall
20
Years of Service
User Offline
Joined: 7th Aug 2004
Location: United Kingdom
Posted: 1st Mar 2006 18:50 Edited at: 1st Mar 2006 18:50
No, your positions of:

0.25,-0.15,0.45

are too close to the camera - the minimum camera range is 1 - any part of any object closer than 1 unit away from the camera is invisible

Edit: Got in before me but with a different idea
General Sephiro
19
Years of Service
User Offline
Joined: 27th Sep 2004
Location:
Posted: 2nd Mar 2006 01:49
ahm when i lock objects on.. it's usually ALLOT futher out than that.. usually something like

lock object on 1
position object 1,0,0,400

Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 3rd Mar 2006 17:40 Edited at: 3rd Mar 2006 17:41
ok now my code is


and it still cuts off half the rifle

sos to be so n00bish

"Thank you, come again!"
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 3rd Mar 2006 18:13 Edited at: 3rd Mar 2006 18:15
You could try scaleing everything up. It sounds like the rifle is only a couple of units big and if the camera range is set to 1 then it will cover up half of the rifle. If the rifle is around 100 units big then the camera range will mean that you only lose 1/100th of the rifle, which should be unoticable.

Sir Ollie
19
Years of Service
User Offline
Joined: 29th Sep 2004
Location:
Posted: 4th Mar 2006 12:11
ty


"Thank you, come again!"
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 5th Mar 2006 21:34
set camera range 0.1,10000 will also cut off less of the rifle.

Insanity is just a state of mind
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 6th Mar 2006 22:58
@3ds master why do you want to position the object after u have locked it in place? makes no sense to me.

life's one big game
spec= 1.6ghz, 512mb ram, 128mb gpu, directx 9.0c, dbpro and classic

Login to post a reply

Server time is: 2024-09-24 17:28:29
Your offset time is: 2024-09-24 17:28:29