Can I get a sprites image name?
-
This post is deleted! -
You might kick yourself for this: getSpriteImage()
-
@Legendary Thanks, I actually saw that command and read the help page on it, but I read it like it gets the image itself and not the name. I guess I'm just stupid. lol
-
Just checked and yeah getspriteimage doesn't get the name, sadly.
-
@SteveZX81 I think that you can set your own user defined variables on a sprite i.e. sprite.name = "fred"
-
That's correct, you can assign a user variable to the sprite to keep track of the name if you like.
getSpriteImage(sprite)
will return the image handle only. The image name isn't stored anywhere unless you keep track of it yourself!