Hi, so I´m kinda noob in python, I just started learning it. I got this game in mind where u have a ball going from top to bottom without changing x dimension. I´m desperately trying to make the ball loop up and down in a smooth movement however with no results. The loop should end when I press space, which will shoot the ball to pre generated goal on the left side of the screen. Any suggestions on how to do that? I searched the internet however only really sophisticated and difficult algorythms are there...Im desoerate please help.
import tkinter can=tkinter.Canvas(width=1000,height=700) from random import* can.pack() y=100 def ball(): can.create_oval(500,y,600,y+100) ball() i=0 while i == 0: if y<500: can.move(ball,0,5) else: can.move(ball,0,-5)This is what I created, however it doesnt work...