ccsprite Questions

5

Solved

That's the question xD Given an instance of a CCSprite in cocos2d in iphone, what method can I use to obtain the image width and height?
Wyn asked 23/3, 2010 at 21:53

4

Solved

I have an object that inherited from CCSprite. I want from inside this object to change the image. How do I change the image (sprite) without creating a new CCSprite object in Cocos2d-X? Thanks, ...
Pardo asked 4/5, 2012 at 20:56

3

Solved

I have a CCSprite that is initialized using [CCSprite spriteWithSpriteFrameName:@"plist_file_key_here.png"]. I have already added all the sprites from my plist file to CCSpriteFrameCache. I have tr...
Abject asked 18/11, 2011 at 23:20

4

Solved

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 follow...
Bourke asked 7/6, 2011 at 16:25

1

How do I write the TDD for "is sprite added or not" in the scene for cocos2d-x in eclipse. Here is my code CCSprite *sprite =null; //adding sprite code sprite = new CCSprite(); sprite->initWit...
Storytelling asked 4/4, 2014 at 9:26

1

Solved

What would be the best way to do this? I see the CCEaseSineInOut action but it doesn't look like that could be used to do this. I need to move from one side of the screen to the other. The sprite ...
Misinterpret asked 23/8, 2013 at 22:15

2

Solved

Why do I need this? Basically I need to turn a color image into gray-scale. Including a gray-scale version of the image could be a solution, but space is tight in my situation - I don't want my AP...
Euphonium asked 12/3, 2012 at 10:50

2

I am drawing the line using following code, it works just amazing, http://www.merowing.info/2012/04/drawing-smooth-lines-with-cocos2d-ios-inspired-by-paper/ Now I want to..... 1> Detect if the l...
Entrench asked 22/3, 2013 at 12:8

1

Solved

Consider this conditions for my website: I don't support IE8 and below so browser support is not a problem. I also use gzip that would avoid data overload in CSS in cases that I copy and paste da...
Anthodium asked 17/11, 2012 at 1:21

1

Solved

EDIT: If the question is badly written have a look at the video (3), same link as in the bottom of this page. I am trying to draw a very simple bezier curve using ccBezierConfig and Cocos2D. Read...
Bart asked 14/9, 2012 at 19:16

1

Solved

I have added 7 sprites and give them tag and zorder.. but i can't get touch on third object and at last there is only one object remained then i get touch of it.. But when i added 6 sprites i'll ge...
Baryram asked 18/8, 2012 at 9:57

1

Solved

Good morning. I'm on linux, using cocos2d-x for Android. I have created a function that calculate circle values. // Circle point updateCircle() // x = number of iteration · SamplingPeriod |-|...
Hodgkins asked 22/7, 2012 at 6:50

2

Solved

I do not understand what I do exactly when I add a CCSpriteFrameCache or CCSpriteBatchNode to my cocos2d application. Can somebody please explain the following points (it would be helpful if you co...
Trinitarianism asked 2/6, 2012 at 10:25

9

Solved

I am trying to build a game for the iphone using cocos2d engine. I wanted to know how can I tell a difference whether the user is using iphone 4 or iphone 3 as I wanted to load hi-resolution graphi...
Joule asked 20/7, 2010 at 20:29

1

Solved

i'm starting to learn cocos2d, and i was wondering why actually we use convertToGL from CCDirector, [[CCDirector sharedDirector] convertToGL: touchLoc]; when we already have the [touch view] from [...
Kershaw asked 4/11, 2011 at 15:43
1

© 2022 - 2024 — McMap. All rights reserved.