Jump to content

Check if atlas frame exists


Recommended Posts

  • 2 months later...
  • 5 years later...

Very late reply, but I was looking for a solution to the same issue. I don't think nemoDreamer's anser would work, it seems to just look for an image, not texture atlas frame.

I'd also avoid using underscore as in the first reply, but you can do something with Phaser only methods like this:

function hasFrameName ( { atlasName, frameName } ) {
  return this.state.cache.getFrameData( atlasName ).checkFrameName( frameName )


Edited by Anatol
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.

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.


  • Recently Browsing   0 members

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