Jump to content

How to retrieve image width that is in an atlas using cache object


plicatibu
 Share

Recommended Posts

Hi, guys.

I know that for an image I can retrieve it's width issuing the command

game.cache.getImage(key).width;

But suppose that instead of a single image you have an atlas named 'atlas' and its key is 'atlas' and that it contains an image named 'logo.png'.

How could I get the width of image named 'logo.png' from cache object?

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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