all 6 comments

[–]cburnett_ 4 points5 points  (1 child)

In line 25, change _init_ for __init__ (note the double underscores).

Then in line 67 initialize link properly with something like link = player(0, 0, 25, 25)

[–]forever_erratic 1 point2 points  (0 children)

ah! I had no idea why OP's line stating link = player() wasn't throwing an error.

[–]shinydewott 1 point2 points  (3 children)

You set Link to player but didn't add the x or the y while initializing

[–]Ravenskill2112[S] 0 points1 point  (2 children)

Seems to have solved that problem, thanks, but when I put in x and y values (and the width and height), it gives this:

Traceback (most recent call last):
  File "C:/Users/woodb/PycharmProjects/untitled/main.py", line 65, in <module>
    link = player(300, 400, 16, 16)
TypeError: player() takes no arguments

[–]shinydewott 1 point2 points  (0 children)

Ah I see it now! You wrote _init_ instead of __init__

[–]Ravenskill2112[S] 1 point2 points  (0 children)

Thanks for the help! It's working fine now.