any one has a starting code example of movement and rotation? im trying to make an old school style rpg like eye of the beholder, any one have an example code for movement and camera rotation?
10x in advance.
Movement and rotation of what though ? 2D or 3D objects ? Or pseudo 3D in a 2D space ? I do have a pseudo 3D code example in the Showroom
3D movement is easy but lately there's been trend in thinking keeping the camera still and moving the meshes relative.
I think but I´m not sure it´s a first thigs I try to do whit GLbasic.
If the viewport it´s Orthogonal, and you only want rotate from the camera it´s simple:
X_Camera cos(radian)*vector,high from the land,sin(radian)*vector,
0 , 0 , 0
Whit this you can trun around your from a desired Heigth from the floor.
For an FPS game, I think it´s a bit more complex, but in the examples files, concretly the Maze, I think it´s did it for Mrtatoad*, you can find the routine for a complex movement of the Camera.
*Excuseme if I´m wrong- :booze: