Jump to content

is it possible to get the frame name used in a texture atlas?


valueerror
 Share

Recommended Posts

sometimes i did something like

 

if (sprite.key == 'cat')

 

now i am using a texture atlas and i would ocasionally need something similar like

 

if (sprite.frameName == 'cat') 

 

actually this works somehow but not with an animation.. i'd like the initial framename used on creation of the object?

 

 

the actual problem is:

 

i am creating objects from an object layer from tiled.  now i need to differentiate between different frames because the created objects get different configurations

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...