Firstly, gotta make sure AnimatedSprite2D is the right node to use. I’m making one of those random clicker games where you click a button and get a random chance of getting different items. I need certain items to be rarer than others, and the sprite to show the item you get, but also be able send info such as that item’s rarity, name, etc.
Right now I was thinking of having a bunch of one frame animations on one animated sprite and then using the name of the animation to find the metadata.
If AnimatedSprite2D is the right thing to use, what would the script look like?