Where are the origin (x,y) coordinates on a sprite? Is it at the top left? Is it different in cocos2d?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In cocos2d, the origin of a sprite is in the middle of the sprite, but you can change that with setAnchorPoint. Also remember the origin (0,0) of the screen is in the lower-left, the way OpenGL likes it, not the upper-left the way the Apple libraries like it.