How to recognize graphic asset other than collision info?

PH5

New member
Hi again. So, what I am trying to create is a way to have multiple graphics assets with the same collision type ( in my case collectible), but to have a different image for each one, AND be able to tell which collectible is which based on the image it has. Ideally, there would be a variable tied to the graphic asset that I could read and set, but other than collision type, I don't see any available. For what I am building, I am afraid if I will run out of collision types if I make unique ones for each collectible.

So, one idea I have is to grab the graphics tile location info from the collectible when my player object collides with it. Then, I could run a script on that to determine which image it is. It's a bit ugly, but it would work. My lack of knowledge on the graphics objects rears it's head again I am afraid. Can anyone tell me where that graphics data is stored in the object?
 
Top Bottom