Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6030687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:04:27+00:00 2026-05-23T05:04:27+00:00

The problem that I have is that when ever I change the anchor point

  • 0

The problem that I have is that when ever I change the anchor point sprite automatically rotates with respect to the current anchor point. And I don’t want that to happen.

The steps that I followed

  1. create a sprite with anchor point (0.5, 0.5)
  2. Changed the anchor point to (0,1)
  3. Rotated the sprite to 90 degree. (Using CCRotateBy. Sprite rotated correctly)
  4. Changed the anchor point to (0.5, 0.5) (Every thing is fine till now. And this is the position that I need to keep). Now sprite.rotation is 90.
  5. I changed the anchor point to (1,0) (Sprite automatically rotates to 90 degree with respect to the given anchor point – I need to stop this behavior)

Is there any way to reset the rotation of sprite to 0, without actually rotating the texture(ie., to keep the texture in its current form – actual texture rotated to 90 degrees) and changing anchor point or position along with step 4, so that I can continue from point 5.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:04:27+00:00Added an answer on May 23, 2026 at 5:04 am

    As Lukman says, the anchor point will always affect rotation, since your goal is to be able to specify the sprite position with a different anchor point from the rotation I would suggest making an empty CCNode as a parent of your sprite.

    This way, you can set the position on sprite to be relative to this parent node to compensate for your anchor point change and then keep the anchor point for rotation on the sprite but use the parent node for position.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered a problem that I have not come accross yet when setting
We have the problem that we have the open project files in our SVN
I have a problem that I have not faced before: It seems that the
i have bought a template that have built in contact form problem is that
I have been Googling a problem that I have with trying to integrate the
This is a really weird problem that I have been having. When I download
I often run into the problem that I have one stream full of data
I frequently run into the problem that I have to preserve state between several
Here is a hum-dinger of a problem that I have not found an answer
problem is that I have to checkout a different branch for every project. and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.