Hi guys, I'm not sure what did I do wrong. I defined a class object, and when I put it on a screen with:
They show up on the screen just fine. However, when I put:
It crashes the game and say [AttributeError("type object 'item' has no attribute 'image'")]
Did I miss something?
Here is the full code:
Python:
screen display:
text "[item.name]"
text "[item.image]"
Code:
screen display:
imagebutton:
idle "images/[item.image].png"
Did I miss something?
Here is the full code:
You don't have permission to view the spoiler content.
Log in or register now.