skier.move(hastighet)
self.rect.centerx = self.rect.centerx + speed[0]
I was not able to post my entire code here cause this website thought it wasn't properly formatted.
I get the error message
'ClassSkier' has no attribute 'rect'
I literally copied this code from a book so I have no idea why it's not working. The faulty lines are the ones i copied in above.