Mouse not showing
Blitz3D Forums/Blitz3D Beginners Area/Mouse not showing
| ||
In my 3d app there is no pointer showing and the mouseX and Y are 0 CODE Graphics3D 1920,1080,32,0 SetBuffer BackBuffer() xPos# = 0 yPos# = 4 zPos# = 0 pitch# = 0 yaw# = 0 roll# = 0 camera=CreateCamera() light=CreateLight() CameraClsColor (camera, 0,128,255) animationSpeed# = 0.29 ; sndMusicLoop=LoadSound("popcorn.mp3") LoopSound sndMusicLoop PlaySound sndMusicLoop sm1=LoadAnimMesh("sm1.b3d") ExtractAnimSeq(sm1,1,16 ) Animate sm1,1,animationSpeed#, 1 PositionEntity sm1, -10, 0, 0 bg=LoadAnimMesh("bg.b3d") ;number of surfaces surfaces=CountSurfaces(sm1) cameraX# = 0 direction# = 0 CameraZoom(camera, 2.5) ;MoveEntity camera, 0, -4, 0 PositionEntity camera, xPos, yPos, zPos While Not KeyDown(1) If(MouseX < (1920/2)-6) ;commented out because mouseX and Y arnt working ;yaw# = yaw# + 0.1 ;MoveMouse(1920/2, 1080/2) EndIf If KeyDown(200) MoveEntity camera, 0, 0, 0.1 EndIf If KeyDown(208) MoveEntity camera, 0, 0, -0.1 EndIf If KeyDown(203) yaw# = yaw# + 0.1 EndIf If KeyDown(205) yaw# = yaw# - 0.1 EndIf RotateEntity camera,pitch#,yaw#,roll# UpdateWorld RenderWorld Text 20,20,("Kippykip game test" + MouseX + " and " + MouseY) Flip Wend End |
| ||
Nevermind just needed brackets next to mouseY and X |
| ||
Yeah, I never quite got that. This also happens with Millisecs(): if you don't use brackets it will always return the same value. |