Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Can I get a sprites image name?

    Help
    4
    6
    305
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SteveZX81
      SteveZX81 F last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Legendary
        Legendary last edited by

        You might kick yourself for this: getSpriteImage()

        SteveZX81 1 Reply Last reply Reply Quote 0
        • SteveZX81
          SteveZX81 F @Legendary last edited by

          @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

          1 Reply Last reply Reply Quote 0
          • SteveZX81
            SteveZX81 F last edited by

            Just checked and yeah getspriteimage doesn't get the name, sadly.

            pianofire 1 Reply Last reply Reply Quote 0
            • pianofire
              pianofire Fuze Team @SteveZX81 last edited by

              @SteveZX81 I think that you can set your own user defined variables on a sprite i.e. sprite.name = "fred"

              1 Reply Last reply Reply Quote 1
              • Willpowered
                Willpowered Fuze Team last edited by

                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!

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post