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

 Share

  • Recently Browsing   0 members

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