I need some help to rotate an object
I did a matrix and insert a tank in it
I want to tank to stand in one spot but I need it to
rotate to left and right (according do to buttons of course)
the problem is that I have no idea how to do it
The only thing I can guess is that the code will come where
I put `===========.
BTW this is my first game
Sync On
Sync Rate 50
Hide Mouse
Autocam off
`make matrix
make matrix 1,1000,1000,50,50
load image "grass12.bmp",1
prepare matrix texture 1,1,2,2
`load object
load object "H-Tank.x",1
Position object 1,500,0,500
mY=100
`main loop
Do
loop object 1
if upkey()=1 then move camera 10
if downkey()=1 then move camera -10
`the controls
If keystate(30)=1
`===========
Endif
If keystate(32)=1
`===========
Endif
Sync
Loop