In order to successfully place and manipulate objects/images in Cocos2d, you have to understand its coordinate system.
Before we get into more details, here are some things you could know:
Origin (System) — The origin (0,0) of the coordinate system is the lower-left corner of the application’s screen
Origin (Sprite) — The origin of a sprite (image) is the lower-left corner of the image
Anchor Point (Sprite) — A sprite’s anchor point (where it is drawn from) is the
center of the image
Relativ...
Published on March 30, 2015 19:06