This topic is now archived and is closed to further replies.

Space Ship

This topic is 5377 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A space invaders kinda question. I took lesson 9 (the one with the stars falling into the center of the screen) I added in a new texture for my ship, and new variables forward and turn I am having trouble having the ship move forward, after rotating. I can get the ship to move up and down, and rotate in place.. but not move after it has been rotated. Here what I''m working with. (I still have the falling stars in the background) glLoadIdentity(); glTranslatef(0,forward,zoom); glRotatef(turn,0.0f,0.0f,1.0f); //Draw the ship texture

Share this post

Link to post
Share on other sites