I am trying to make a game that has collision in python (not pygame) I need to add the width of a turtle to the xcor of another. But the xcor of the other turtle is classified as a method. This prevents me of doing what i need to do.
I tried the following:
if enemy.xcor == player.xcor or enemy.xcor == **player.xcor + player.width or enemy.xcor == player.xcor**
All I got was:
if missile.xcor == sleigh.xcor or missile.xcor == sleighX + width_ or missile.xcor == sleighX - width_:
~~~~~~~~^~~~~~~~
TypeError: unsupported operand type(s) for +: 'method' and 'method'
Is there any way I can get around this?