camera turing problem
Blitz3D Forums/Blitz3D Beginners Area/camera turing problem
| ||
ok, this is hard to explain... here is the code ok, with the game controller buttons I turn down, then I turn left or right, and then, the screen is all crazy and on its side... can anyone please help... this has been bugging me for hours!!! |
| ||
It's because you're turning in multiple directions. Use a pivot to turn left and right,and move the camera up and down. That should work. Also please use code or codebox tags in the future;insert code here |
| ||
how would I use a pivot to move left and right? |
| ||
If keyhit(203) turnentity campivot,0,1,0 If keyhit(200) turnentity camera,1,0,0 |
| ||
I just wouldn't use turnentity if you can help it :o) Try using rotateentity. |
| ||
Function Turn_Entity(entity, x#, y#, z#, coordsys=False) RotateEntity Entity, EntityPitch(entity,coordsys)+x, EntityYaw(entity,coordsys)+y, EntityRoll(entity,coordsys)+z, coordsys End Function That way you don't need to use a pivot. The thread on this: http://www.blitzbasic.com/Community/posts.php?topic=81169 |