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 6715873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:39:58+00:00 2026-05-26T08:39:58+00:00

I just wanted to clarify something here for Cocos2D, does setScaleX/and setScale Y adjust

  • 0

I just wanted to clarify something here for Cocos2D, does setScaleX/and setScale Y adjust the width and height of the object?

I have googled for the documentation for Cocos2D but I didn’t see it so I just wanted to clarify here.

So would something like this make the width 35?

[sprite1 setScaleX:35 / sprite1.contentSize.width];

Thanks!

  • 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-26T08:39:59+00:00Added an answer on May 26, 2026 at 8:39 am

    You want CCNodes scale property for both x and y:

    • http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_node.html#a9c00de8556f267b63055ebd9e55f2415

    If you want to do it gradually use one of these actions:

    • http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_scale_by.html
    • http://www.cocos2d-iphone.org/api-ref/latest-stable/interface_c_c_scale_to.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wanted opinions on a design question. If you have a C++ class than
Just wanted your expert opinions on declarative transaction management for Spring. Here is my
I just wanted to see if I could have your thoughts on the design
I just wanted to clarify if a hard/symbolic link is actually a file that
just wanted to clarify the options for client presentation : 1) winforms - for
I am working on an SQL statement and just wanted to clarify my understanding
I have implemented my own drop down menu and wanted to clarify the accessibility
I found this post, windows service startup timeout But just wanted to clarify, I
Just wanted to know that does Visual web Developer 2010 [Free tool] contains MVC
Just wanted to get an idea for ways (web) developers get round the short

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.