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 Movement, Please Help.

Author
Message
Anarchist451
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location:
Posted: 21st Dec 2002 23:33
As my second effort with DBP I'm trying to do a simple MouseLook effect. For some reason I can only get it to work by moving the mouse right and up. Left and down do not work. I have all the variables print out to the screen while running and they appear fine. My test statements are simple and this is driving me crazy.


sync on
sync rate 0
ink rgb(255,255,255),1
AUTOCAM OFF

Make_World("C:\M1.BMP",150,400,50,25,1,1)
Create_Block(1,10,0,0,0)
Create_Block(2,10,0,0,350)
Set_Camera(0,200,-30,0,0,200)

REM START MAIN LOOP
do
IF MOUSEMOVEY() 0.0
Move_Camera(0,-1,0)
ENDIF
IF MOUSEMOVEX() > 0.0
Move_Camera(1,0,0)
ENDIF
IF MOUSEMOVEX() 0.0
pitch camera up pY
set cursor 10,70
PRINT "pY Value:" + STR$(pY) + " So Move UP"
ENDIF
IF pY 0.0
turn camera right pX
set cursor 10,70
PRINT "pX Value:" + STR$(pX) + " So Move RIGHT"
ENDIF
IF pX
Anarchist451
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location:
Posted: 21st Dec 2002 23:34
Sorry, here.



John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 22nd Dec 2002 01:30
Couldnt you just.........

point camera mousex,mousey,mousez ???

I have DB version 1.13 but I THINK that will work in pro.

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Anarchist451
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location:
Posted: 22nd Dec 2002 03:11
Thanks, now I feel silly..

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 22nd Dec 2002 03:58


Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com

Login to post a reply

Server time is: 2024-11-23 17:33:57
Your offset time is: 2024-11-23 17:33:57