title: Using python classes (OOP) to create FUNCTIONAL turtle objects?
body: <p>I'm currently coding in python to create a somewhat similar game to 'Space Invaders'.
  It was going well until I tried to make all of my invader objects (which are turtles) by using a class, so I could easily manipulate the number of enemies I wanted when I adjust the difficulty.</p>
  
  <p>However now I have done this I have removed functionality to the TURTLE objects as they are now seen as CLASS OBJECTS instead. Therefore I cannot use turtle module features such as <code>[object].xcor</code> and <code>[object].ycor</code> which are somewhat essential.</p>
  
  <p>Here is the code that makes the class of objects:</p>
  
  <pre><code>class invaders():
  def __init__(self, speed, position):
      self = turtle.Turtle()   # how I thought I could make them turtle objects (didn't work)
      self.color('red')   
      self.shape('circle')
      self.up()
      self.setposition(position)
      self.speed(speed)
  
  def change_speed(newSpeed):
      invader.speed(newSpeed)   # use to make new speed if changing difficulty  #variable.changeSpeed(newSpeed)
  
  def change_position(x, y):
      invader.setposition(x, y)
  </code></pre>
  
  <p>I have also attached a photo below so you can see the difference between the two objects I am talking about.</p>
  
  <p><a href="https://i.stack.imgur.com/kF3iP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kF3iP.png" alt="the errors underneath the text aren&#39;t relevant"></a></p>