Animation3

Moving the shapes

blob2=win.create_oval(150,150,200,200) #Create the shape

for x in range(0, 60): #Repeat everything underneath 60 times

win.move(blob2,0,-5) #Move blob2 X no change Y-5 each loop

tk.update() #Update the window with the new shape position

time.sleep(0.05) #Slow it down a little

The win.move(shape,0,-5) command controls the direction.

The first number is X

Positive number moves to the right

Negative number moves to the left

The second number is the Y

Positive number moves up

Negative number moves down

You can combine them to move diagonally

Challenges

Create a shape and animate it so it moves up, down and diagonally.