Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
why won't my turtle move
#4
I don't know why it's drawing the arrow. It's clear that the Pen command is drawing it, but Pen with a capital p is not documented. With a lowercase p it doesn't do that, it should just return the current pen settings.

Your first command doesn't work because fred isn't a Turtle object. At the end of your program, fred is None, because that's what turtle.color returns. If you want a turtle named fred to manipulate, you need to create one with fred = turtle.Turtle(). But to move that turtle you need to send the commands to fred, as in fred.forward(100).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
why won't my turtle move - by ironsheep - Nov-13-2018, 02:43 AM
RE: why won't my turtle move - by ichabod801 - Nov-13-2018, 02:57 AM
RE: why won't my turtle move - by ironsheep - Nov-13-2018, 10:37 PM
RE: why won't my turtle move - by ichabod801 - Nov-13-2018, 11:10 PM
RE: why won't my turtle move - by ironsheep - Nov-14-2018, 10:51 PM
RE: why won't my turtle move - by ichabod801 - Nov-14-2018, 11:18 PM
RE: why won't my turtle move - by ironsheep - Nov-15-2018, 04:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to move text created by turtle.write()? derekered 7 5,990 Dec-16-2020, 09:44 AM
Last Post: itexamples
  wn = turtle.screen() AttributeError: module 'turtle' has no attribute 'screen' Shadower 1 6,192 Feb-06-2019, 01:25 AM
Last Post: woooee
  Help! Turtle not working, even when we click the turtle demo in IDLE nothing happens. BertyBee 3 5,653 Jan-04-2019, 02:44 AM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020