How do I make the turtle go to the edge of the screen in python?
Go to solution
Solved by Sauron,
The screen has a border that covers part of the edges and since the position is relative to the center of the sprite it's hidden by the border when you send it right to the edge. Just send it to -240 or so instead.
Â
If you want to better understand what's happening I suggest you try the live interpreter instead of running the whole script. This will let you try different numbers and realize what you're doing wrong. It will get you a lot farther and a lot faster than just asking here for every tiny problem.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now