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 / Need help with 1st pong game

Author
Message
May0naise
15
Years of Service
User Offline
Joined: 16th Nov 2008
Location: Lost in Time
Posted: 3rd Jan 2009 18:23 Edited at: 3rd Jan 2009 18:25
Well atm ive got a basic menu, Start..and exit, im thinking of changing hi-score to help or controls. Ive gotten the positions and camera right, but i just cant figure out how to rotate the camera around, left and right, and ive tried looking at a few tutorials...and i cant get the movement right.
Please help me.



Thanks in Advance,

May0

Be patient....everything takes time.

Attachments

Login to view attachments
the destroyer
15
Years of Service
User Offline
Joined: 24th Dec 2008
Location:
Posted: 3rd Jan 2009 21:12
brother use the rotate camera command
e.g
rotate camera camera number,xangle,yangle,zangle

BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 4th Jan 2009 00:18
@destroyer
I'm pretty sure he means he wants the camera to pan around the field, not just rotate and point somewhere else.

@May0naise
This could probably be done with trig, but here's a cheap trick I like to use for camera panning:

1.) Every loop, position the camera at 0,0,0 (or whereever you want it to pan around)
2.) Rotate the camera in whichever direction you want it to go.
3.) Use the command MOVE CAMERA and put in for the value however far away you want it to be multiplied by -1.

Example code:



And of couse you can easily adjust the distance, speed of rotation, etc.

May0naise
15
Years of Service
User Offline
Joined: 16th Nov 2008
Location: Lost in Time
Posted: 4th Jan 2009 05:22 Edited at: 4th Jan 2009 05:22
~destroyer
Yeah i did try that =D

~bmaczero
Thanks, i'll try it tommarow cause im at my friends and he cant get directX

Thanks again

Be patient....everything takes time.

Login to post a reply

Server time is: 2024-09-28 00:24:38
Your offset time is: 2024-09-28 00:24:38