Hello I am developing easy space invaders clone game and i need to figure out a way how to detect collision of the bullet and the alien when i shoot. Any suggestions ? Thanks
Use Pygame in place of Tkinter (eventually in place of Canvas) - there are functions to check collisions.
To check collision you have to get position both elements and check distance between them:
a2 + b2 = c2
a = x1 - x2  , b = y1 - y2 , c = distance between objects A(x1,y1) and B(x2,y2)
If distance is smaller then some value then you have collision - distance doesn't have to be zero to have collision. This way you check collision in circle around object.
But you can check collision in square area around the object - it wil be easer for you to calculate it
Object A (x1,y1) has square area x1-10 ... x1+10, y1-10 ... y1+10. You have to check whether object B (x2,y2) is in that square.
How to detect collisions of two canvas object Tkinter