Jump to content
  • Advertisement
Sign in to follow this  
noatom

How are Texture Packer coordinates created?

This topic is 2053 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

<key>logo.png</key>
            <dict>
                <key>frame</key>
                <string>{{257,76},{164,112}}</string>
                <key>offset</key>
                <string>{0,0}</string>
                <key>rotated</key>
                <false/>
                <key>sourceColorRect</key>
                <string>{{0,0},{164,112}}</string>
                <key>sourceSize</key>
                <string>{164,112}</string>
            </dict>

One would expect that 257,76 is the minimum point,and to get the maximum point you add 164 and 112, but it's not! I mean it's weird,some sprites seem to have that type of coord writing,some not! And I did test on sprites that are not rotated, and I always get different results.

 

Can someone tell me exactly how to actually get the minimum/maximum points?

Share this post


Link to post
Share on other sites
Advertisement

Never heard of this program, but "sourceColorRect" looked like a Google'able string - and gave:

 

http://stackoverflow.com/questions/14554846/what-are-offset-and-sourcecolorrect-keys-texturepacker-plist-schema

 

Which told me that i should add "cocos2d" to the search - and got:

 

http://gamedev.stackexchange.com/questions/18758/in-cocos2ds-plist-output-what-are-offset-colorsourcerect-and-these-other

 

Looks to be of help - hope it is.

 

edit: yep, seems to cover it all.

Edited by tanzanite7

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!