canvas.move not working correctly
<p>I am making A python game and the canvas.move function is not working properly.
The Function below is what I am trying to use to move the enemy to the player:</p>

<pre><code>def AttackPlayer(self):
    Enemy.canvas.move(Enemy.man,self.canvas.coords(Man1.man)[0],self.canvas.coords(Man1.man)[1])
    root.after(400,self.AttackPlayer)
</code></pre>

<p>I want this function to move the enemy to the player but it just moves the enemy to the player then moves the enemy to the edge of the screen. The enemy stays at the edge of the screen forever.</p>

<p>I already know this function when working correctly will just snap the enemy on to the player so do not let me know.</p>