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 / Camera Size again

Author
Message
Megaman Zero
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: United States
Posted: 10th Apr 2004 15:51
Ok, so I have this code for a camera, its close to being what I want it to be, I know I have asked this before but I have more questions now. Included in this post is a source, I am wondering what part of the source has the part where the camera is lowered to the ground, I need to raise it up a bit for one of my games, and I would like it to be completely customizable. Can anyone help me?

Thanks,
Zero

Zero (Formerly Shadow Guyver)
NRTP Message Boardshttp://nrtp.proboards22.com/index.cgi
Terra Elysium (A Megaman Fanclub)http://terraelysium.proboards28.com/
Mentor
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 10th Apr 2004 16:28 Edited at: 10th Apr 2004 16:29
in

get ground height(1,cpx#,cpz#)+10

the +10 at the end dictates the height of the camera above the ground, so you change it to

get ground height(1,cpx#,cpz#)+PlayerViewHeight

and then you can ask the player how tall they want to be at the start of the game for example, eg

print "how tall will want to be in this game?...enter a value from 1 (Dwarf) to 9 (Giant)"
input PlayerViewHeight
if (PlayerViewHeight>9) or (PlayerViewHeight<0) then PlayerViewHeight=1

hope that some help

Mentor.

PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, ATI radeon 9800 pro gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster, ups.
Megaman Zero
21
Years of Service
User Offline
Joined: 25th Jan 2003
Location: United States
Posted: 10th Apr 2004 16:56
Thanks, it seems I had to jack up that number quite a bit to get desired results. Now its time to make the rest of the level. Thanks for everyones help from this forum who has ever helped me.

Thanks again,
Zero

Zero (Formerly Shadow Guyver)
NRTP Message Boardshttp://nrtp.proboards22.com/index.cgi
Terra Elysium (A Megaman Fanclub)http://terraelysium.proboards28.com/

Login to post a reply

Server time is: 2024-09-22 04:38:42
Your offset time is: 2024-09-22 04:38:42