stage.set_background("grid")
sprite = codesters.Sprite("butterfly")
while True:
sprite.say("My current position is\n (" + str(sprite.get_x()) + ", " + str(sprite.get_y()) + ").")
stage.wait(2)
newX = int(sprite.ask("What should my new X position be?"))
newY = int(sprite.ask("What should my new Y position be?"))
dot = codesters.Circle(sprite.get_x(), sprite.get_y(), 10, "blue")
sprite.go_to(newX, newY)
-
Run Code
-
-
Stop Running Code
-
Show Chart
-
Show Console
-
Codesters How To (opens in a new tab)