Questions tagged [spritebuilder]

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.

272 questions
0
votes
0 answers

Changing positions of sprites and buttons made in SpriteBuilder

I've made 3 buttons in SpriteBuilder, named them _bt1, _bt2 and _bt3 and made a selector for each. Selectors work fine but when I try to change their positions in codes they just don't move. [_bt1 setPosition:ccp(435,…
0
votes
1 answer

How to delete a CCNode in sprite builder through Xcode

i am making an angry birds game. At the moment i have 3 birds to the side of the screen. Each time i fire a bird i want to delete one of the animations. How do can I delete a CCNode in sprite builder through Xcode?
user3704648
  • 349
  • 3
  • 14
0
votes
0 answers

How to make CCProgressNode work?

I'm trying to add a health bar to my SpriteBuilder game. For SpriteBuilder, i have a layer called Level.ccb. Under the CCNode of the layer, i have the health bar with doc root var of "_healthBar". For XCode: In Level.h #import "CCNode.h" @interface…
0
votes
1 answer

If two sprites are in different CCPhysicsNodes, can collision happen?

If two sprites are in different CCPhysicsNodes, can collision happen? I had both sprites in the same PhysicsNode but one should be affected by gravity and second should not, that's why I created another PhysicsNode and placed second sprite there.…
user3475724
0
votes
1 answer

Multiple objects of the same class reference only one of the objects

I'm using SpriteBuilder to design levels for a game. In the game, I have a block object that moves when swiped. However, when I have more than one of those objects in the level, each one only references the last one added. They all get initialized…
Ninwinz
  • 50
  • 6
0
votes
1 answer

SpriteBuilder & CCTexture - copy textures from smart sprite sheet in SpriteBuilder

I have come across a problem when trying to copy textures from smart sprite sheet in SpriteBuilder. When i copy a sprite.texture it seems to copy the complete smart sprite sheet and not the individual image. example If i create a sprite using the…
Tom
  • 2,358
  • 1
  • 15
  • 30
0
votes
1 answer

SpriteBuilder doesn't publish assets

I have updated the spritebuilder to the new version. The spritebuilder doesn't publish the images/fonts. I can add and delete images in my SB project and when I click publish nothing happens. If I delete the files in the Published-iOs folder and…
João Abrantes
  • 4,772
  • 4
  • 35
  • 71
0
votes
1 answer

Communicating which button is pressed in a pause menu using SpriteBuilder

I have a game with a pause menu button on it. When I press the button on my game scene, everything pauses normally, my pause menu shows up, then I can resume with one button and that also works. I have another button for restarting the level. Since…
spaderdabomb
  • 942
  • 12
  • 28
0
votes
0 answers

Cocos2d searching for images in removed directory

I'm working with Spritebuilder to build a simple app. I was using a Smart Sprite Sheet, but a while ago I noticed I kept receiving random errors that would come and go, and they were always related to the sprite sheet. I wasn't sure what was wrong…
SaleenS7
  • 402
  • 4
  • 15
0
votes
1 answer

Gaps in cocos2d infinite looping game

I am using this code to implement infinite looping, but I'v got gaps for 1-2 seconds every time the offscreen image coordinates are changed. Why do they appear? How to fix it? I am also using SpriteBuilder. #import "MainScene.h" static const CGFloat…
Frank
  • 497
  • 1
  • 6
  • 11
0
votes
0 answers

Access to a ccb inside other ccb with SpriteBuilder 1.0 and Cocos2d v 3.0

Well, I have a character with several CCB's files for each part that have some animation, so I want to know how can I access to each file, because with getChildByName or if I implemented it, I'm only getting the message: CCBReader: Couldn't find…
0
votes
2 answers

Trigger particle after runAction

Trigger particle after move sequence Code part1 CCActionMoveTo *moveTo = [CCActionMoveTo actionWithDuration:0.2f position:nextPosition]; CCActionRemove *remove = [CCActionRemove action]; CCActionSequence *sequence = [CCActionSequence…
whitebear
  • 11,200
  • 24
  • 114
  • 237
0
votes
1 answer

CCTransitions with Spritebuilder - Cocos2d

I am looking at the various transitions between CCScenes using Spritebuilder. Currently I can do a fade transition using CCScene *gameplayScene = [CCBReader loadAsScene:@"kitchen"]; CCTransition *crossFade = [CCTransition…
Allreadyhome
  • 1,252
  • 2
  • 25
  • 46
0
votes
0 answers

stopAllActions doesn't work on Spritebuilder3.1 and cocos2d 3.0

@implementation MainScene { CCSprite * _hero . . } - (void) stop { [_hero setScale:(3.0f)]; [_hero stopAllAction] } My sprite _hero has multiple keyframes and image's are changed. This code(stopAllAction) works when I am using…
whitebear
  • 11,200
  • 24
  • 114
  • 237
0
votes
1 answer

Bodies connected by a joint must be added to the same CCPhysicsNode, however two bodies are under the same CCPhysicsNode but

I am making application by this tutorial. https://www.makegameswith.us/tutorials/getting-started-with-spritebuilder/spritebuilder-physics/ I made jointnode directly in code like this _mouseJoint = [CCPhysicsJoint…
whitebear
  • 11,200
  • 24
  • 114
  • 237