Ok, but is it correct how I wrote the lines of code for Reflet? I can’t get it to work with spritesheets: I get an AnimatedSpritesheet by name, but when playing it I can’t see anything.
So if your class has these 3 variables doing: getProperty(this, "item" + itemType) will give you the variable and setProperty(this, "item" + itemType, value) will set it.
The difference between field and getProperty is that the second takes into account the getter function (if it exists), the doc says it can be slower but it’s easier to use it everywhere, and you can add a getter without having to change all the reflect code.