This is the first time a python-turtle has been controllable!
This is the first time a python-turtle has been controllable!
UPDATE: I made a game with this: https://repl.it/talk/share/Turtle-Race-Xtreme/47560
Leroy01010 (415)
did you get the profile pic from khan
nice
you should try the
turtle.onkey(function_name, "key")
function next so you don't have to press enterCan you give me an example?
@jhke
More samples can be found here:
https://techwithtim.net/tutorials/python-module-walk-throughs/turtle-module/key-presses-events/
There's an error:
AttributeError: 'Turtle' object has no attribute 'listen' on line 20
@jhke They forgot to create the global variables correctly, try this:
@mwilki7 Thanks!