SpriteBuilder is a free and open source visual game editor for building iOS, Android and OS X apps. It comes bundled with the Objective-C & Swift version of Cocos2D, also free and open source. The editor runs on OS X and its development is sponsored by Apportable.
Questions tagged [spritebuilder]
272 questions
0
votes
1 answer
Problems with .ccb file for sprite in SpriteBuilder
I am trying to understand SpriteBuilder. I made a new file hero.ccb for sprite and set it's sprite frame to the image I need. When I go back to the MainScene and drag hero.ccb from the left menu,there is just a CCBFile without anything(no sprite…
user3475724
0
votes
0 answers
How to change the Content Node for a CCSrollView in SpriteBuilder
I'm building a game that requires levels. These levels, so that they all fit onto one page I have had to add them to a CCScrollView. This view loads automatically, as I have set in the SpriteBuilder App. The CCSrollView has been added in the…

user2976917
- 66
- 8
0
votes
0 answers
Initializing a child CCNode onto a parent CCNode
I am working with SpriteBuilder and Cocos2d to build a simple game, and I want to display an error message inside an if statement.
My problem is trying to initialize the CCNode I created in SpriteBuilder to show up on-screen.
I tried creating a…

Albert K
- 25
- 7
0
votes
1 answer
Jump a running sprite in SpriteBuilder
Am a newbie in using sprite builder and cocos2d.
I Have done the sprite continuos running using sprite builder and its timeline. i.e Hero sprite will run continuously once app launches like temple run game.
Here this sprite should jump if user taps…

nik
- 2,289
- 6
- 37
- 60
0
votes
1 answer
Set CCNode z order
I want to set the z order of one CCNode but I have been trying this three options and it doesn't working:
myNode.zOrder = 10;
myNode.physicsNode.zOrder = 10;
[myScene reorderChild:myNode z:10];
Also the myNode.physicsNode.zOrder sets de z orders…

user3739270
- 23
- 7
0
votes
1 answer
play button for multiple players in a ios game using spritebuilder
I am making a board game style game. There is two players, player1 and player 2. Player 1 starts by pressing the player 1 play button. Their sprite moves forward a random number of tiles. Then player 2 starts their turn by pressing the player 1 play…

jakesan700
- 56
- 9
0
votes
0 answers
CGRectContainsPoint and cocos2d 3.1
after I upgraded my project to SpriteBuilder 1.1 and Cocos2d v3.1 the following code stopped working:
-(void) touchBegan:(UITouch *)touch withEvent:(UIEvent *)event {
CGPoint touchLocation = [touch locationInNode:_contentNode];
//Not…

user3739270
- 23
- 7
0
votes
1 answer
multiple Animation Cocos2d 3.0
I have tried to run multiple animation 1.Player will stand on screen loading 2.Then he starts running when his frames finish 3.Player will stop and Go action performed
problem is go action is executed before run action finishes
can any one help me…

Ame
- 1
- 2
0
votes
0 answers
Joints in SpriteBuilder 1.1
like the post says, I am using SpriteBuilder 1.1.0-rc and I am having a problem with joints. The issue is that I drag the joints into the scene and then I link to the bodies, but when I build the project in Xcode, the joints are not working. I used…

user3739270
- 23
- 7
0
votes
1 answer
Play Spritebuilder animation from timeline - Cocos2d
I can't get this to work and it is driving me insane. I simply want to play my animation when it is called. I am using Spritebuilder and Cocos2d. I have a CCNode that I am importing into the scene using
#import "heroCharacter.h"
//Reference
CCNode…

memyselfandmyiphone
- 1,080
- 4
- 21
- 43
0
votes
4 answers
SpriteBuilder CCButton stretched images?
In spritebuilder, the tool to create UI along with cocos2d, how come whenever I try to add a background image to a CCButton, it appears stretched or altered in some way?
It is hard to explain but after fiddling with every CCButton option for 20…

SimplyKiwi
- 12,376
- 22
- 105
- 191
0
votes
1 answer
How to change the document type of a CCB file in SpriteBuilder?
I have created a CCB file as a Scene now I would like to change it into a Layer because I want the size of the CCB file to be larger than one screen.
Is there a way to do this?

Ben-G
- 4,996
- 27
- 33
0
votes
1 answer
How to start CCBFile animation on call in cocos2d?
I ceated the CCBFile in Sprite Builder and added in a main scene, now when i run the project that CCBFile animation start automatically. I want to start or call it after some delay... any idea?
here is my code...
@implementation MainScene…

Nasir Khan
- 37
- 12
0
votes
1 answer
Spritebuilder physics
ive run into some trouble with my spritebuilder project and i cant find a workaround. Im using the flappyfly tutorial to create a game.
In the tutorial there is an Obstacle.ccb in spritebuilder and obstacle.h/m in xcode. The obstacles get spawned…

claustro
- 13
- 5
0
votes
1 answer
Ignore collisons between objects with the same collision group in Cocos2D
I have a basic rocket game that collects meteorites. Very basic. The game works fine except there is a real annoyance that i've been trying to iron out but can't.
When the rocket collides with a…

Dave440
- 57
- 10