JOHN_16
Дайте ка я угадаю, классы не используются?
В классе я задаю переменную, которая содержит изображение
class Player(pygame.sprite.Sprite):
change_x = 0
change_y = 0
def __init__(self,x,y):
pygame.sprite.Sprite.__init__(self)
self.image = player_image
и т.д.
но класс её не может найти, выдает:
Traceback (most recent call last):
File “K:\Phyton\games\the massacre\dagobah.py”, line 7, in <module>
from menu2 import player_image
File “K:\Phyton\games\the massacre\menu2.py”, line 118, in <module>
from menu3 import *
File “K:\Phyton\games\the massacre\menu3.py”, line 73, in <module>
from dagobah import *
File “K:\Phyton\games\the massacre\dagobah.py”, line 7, in <module>
from menu2 import player_image
ImportError: cannot import name player_image