Skip to content
Advertisement

Why is the turtle not turning?

My turtle won’t move with my key press. When you remove the self.forward part, it turns just fine, but when it moves it doesn’t work. How can I make it so that turtle turns while it is moving. Also, what was it that didn’t work in my code before. Also, the image labeled backround isn’t loading. How do I fix that? Thanks. Code:

JavaScript

Advertisement

Answer

Below is a simplification of your code that’s further modified such that the turtle constantly moves forward but you can cause it to turn via the keyboard:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement