title: How To Get An Output From Shapes Overlapping? Python 3.5 Tkinter
body: <p>I'm trying to make a game similar to Block Dodger in python using tkinter.
  What I want to do is make an output from when a rectangle touches another rectangle. I found an answer similar to my question, but it did not explain what to do and how to use the command. Here is my code:</p>
  
  <pre><code>from tkinter import *
  
  def change_coord(event):
      if event.keysym == 'Right':
          canvas.move(a, 20,0)
      if event.keysym == 'Left':
          canvas.move(a, -20,0)
  
  def tet1():
      canvas.move(b, 0, 30)
      root.after(250, tet1)
  
  def tet2():
      canvas.move(c, 0, 20)
      root.after(250, tet2)
  
  def tet3():
      canvas.move(d, 0, 50)
      root.after(250, tet3)
  
  
  root = Tk()
  
  canvas = Canvas(root, width=1000, height=5000, bg='white')
  canvas.pack(pady=0)
  
  a = canvas.create_rectangle(0, 0, 100, 100, fill='red')
  b = canvas.create_rectangle(0, 0, 100, 100, fill='blue')
  c = canvas.create_rectangle(0, 0, 100, 100, fill='blue')
  d = canvas.create_rectangle(0, 0, 100, 100, fill='blue')
  
  
  canvas.move(a, 450, 850)
  canvas.move(c, 450, 0)
  canvas.move(d, 675, 0)
  
  canvas.bind("&lt;Motion&gt;", change_coord)
  root.bind_all('&lt;Left&gt;', change_coord)
  root.bind_all('&lt;Right&gt;', change_coord)
  
  tet1()
  root.after(200, tet2)
  root.after(2000, tet3)
  
  root.mainloop()
  </code></pre>
  
  <p>I'm not sure how I can do this, so I'd appreciate some help with it. Thanks :)
  -Jake</p>