Sorry, I am confused, why am I running into these?
First, oDBCamera.CameraPositionX is wrong, its flipped with oDBCamera.CameraPositionY, that said, I had to pass each the opposite from the mouse.
The mouse is correct along the X and Y axis, but the camera is not.
I even tried here to set the camera rotation to xyz, didn't make a difference.
Second, oDBCamera.CameraPostionY is on force spring lock, how do I unlock it? It always recenters, I don't want this! I want an option to turn auto center Y off.
oDBCamera.CameraPositionX doesn't have this problem.
I'll keep reporting the bugs as I run into them, but these are common commands that everyone should be probably using, I don't know why I am the only one reporting these problems.
'Set the display mode
oDBDisplay.SetDisplayMode(800, 600, 16)
oDBDisplay.SetWindowPosition(0, 0)
'initialize our objects
oDBCamera.AutoCamOff()
oDBCamera.SetCameraRange(1, 1400)
oDBCamera.PositionCamera(180, 35, 180)
oDBCamera.SetCameraRotationXYZ()
'initialize the town
oDBCore.SyncOff()
initializeTown()
'oDBCore.SyncRate(30)
oDBCore.SyncOn()
'Game loop
While oDBP.LoopGDK()
'Control the movement speed of the character
If oDBInput.ControlKey > 0 Then
oDBCamera.ControlCameraUsingArrowKeys(0, 2.0, 2.0)
Else
oDBCamera.ControlCameraUsingArrowKeys(0, 1.0, 2.0)
End If
'Determine if pageup or pagedown is being used
Select Case oDBInput.ScanCode
Case 12
' minus key
ScreenGrab()
Case 201
'PageUp Keycode
oDBCamera.PositionCamera(oDBCamera.CameraPositionX, oDBCamera.CameraPositionY + 1.0, oDBCamera.CameraPositionZ)
Case 209
'PageDown Keycode
oDBCamera.PositionCamera(oDBCamera.CameraPositionX, oDBCamera.CameraPositionY - 1.0, oDBCamera.CameraPositionZ)
End Select
oDBCamera.XRotateCamera(oDBCamera.CameraAngleX + oDBInput.MouseMoveY)
oDBCamera.YRotateCamera(oDBCamera.CameraAngleY + oDBInput.MouseMoveX)
' Sync the loop
oDBCore.Sync()
End While