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
1
vote
1 answer

Access CCB root node animation timeline - Cocos2D

This is driving me insane. I am trying to access the CCB root node so I can get the animation timeline using SpriteBuilder/Cocos2d. I have heroCharacter.m that is the custom class of my animation CCNode. I am importing it into bedroomScene.m. using…
memyselfandmyiphone
  • 1,080
  • 4
  • 21
  • 43
1
vote
1 answer

Where does the method didLoadFromCCB: come from in Cocos2d v3?

There's a method called didLoadFromCCB that you can implement for any class that has been created in SpriteBuilder. This method is called when Cocos2d loads the class from a CCB file. What I want to know is: where does this method come from? Xcode…
Graham Nicol
  • 264
  • 2
  • 14
1
vote
1 answer

Nil label with spritebuilder, can't figure out how to fix it

I am making an iOS game with sprite builder. And I designed it around a board game style. I want the user to press the play button that triggers the play method. It then generates a random number that should be displayed on a label. The label and…
jakesan700
  • 56
  • 9
1
vote
1 answer

How to detect collision without having collision take effect cocos2d

I have a game where kirby shoots basketballs into a net. The problem I am having is detecting whether a shot has scored. I set up the scene with the physics debug on, so all physics bodies are red. The red circle in the middle of the net is the body…
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83
1
vote
2 answers

OALSimpleAudio not working

Xcode is giving me error of "No known class method for selector 'sharedInstance'" for this code: // access audio object OALSimpleAudio *audio = [OALSimpleAudio sharedInstance]; // play sound effect [audio playEffect:@"Hello.mp3"]; How to fix this…
1
vote
2 answers

Make Games With Us: Game of Life: Objective-C Property Error

I have been attempting to follow on how to make John Conway's 'Game of Life' through 'Make Games With Us'. I was able to follow for most of the tutorial until I reached in the step method of MainScene.m (here is the link to the site): -…
1
vote
1 answer

Cocos/Spritebuilder Transitions

I'm making a project with SpriteBuilder. What I would like to know is if there is anyway of transitioning when I make a layer visible? For example when I change scenes, I uses this replaceScene:scene withTransition:[CCTransition…
claustro
  • 13
  • 5
1
vote
1 answer

Cocos2D v.3 High CPU low FPS can't be normal?

I've nearly finished a game which I've noticed has low FPS & high GPU utilisation after a short while. I've run a trace to try and pinpoint the problem, however all the CPU time seems to be taken by the Cocos2D framework. Does this mean this…
1
vote
0 answers

Relocating notification center pull down tab on IOS

I am making a game for IOS in landscape mode, the controls of the game require the user to slide their finger from the top of the screen to the bottom and vice versa if they choose. The problem is when you slide your finger from the top to the…
1
vote
0 answers

CCScrollView content is still showing out of the bounds of the scrollview?

I have started making a game using SpriteBuilder and Xcode, and everything is going fine. But then I wanted to add a stats page in the game, and wanted some kind of scrollview. So i dragged in a CCScrollView (in Spritebuilder). And it scrolls just…
1
vote
1 answer

How to use Custom Class for CCSprite?

I'm trying to do the tutorial for this: https://www.makegameswith.us/gamernews/384/build-your-own-2048-with-spritebuilder-and-cocos2d I want to add CCSprite for the above tutorial. I laid out the CCSprite in Spritebuilder and turn their visibility…
1
vote
1 answer

Temporary disable physics from CCSprite

I'm currently discovering Cocos2D in combination with SpriteBuilder and I'm making stuff bounce around. It's quite fun :) What I'm trying to figure out is the following : - On SpriteBuilder, I create a CCSprite, and I enable physics for this…
Jan
  • 253
  • 1
  • 13
1
vote
1 answer

CCProgressNode for Health Bar not working

I have recently discovered that the CCProgressTimer class is replaced with CCProgressNode in the latest version of cocos2d, however, when i tried to implement the following code, there is nothing happen to the progressNode I have read all kinds of…
Bill Lau
  • 15
  • 5
1
vote
1 answer

Spritebuilder and CCScrollView, page indicators not showing up?

I'm using Spritebuilder to make my game, and CCScrollView usually saves me quite a bit of time. I'm trying to implement the scroll view much in the same way as the home screen on an iphone uses the UIScrollView. I want the page indicators to be…
spaderdabomb
  • 942
  • 12
  • 28
1
vote
2 answers

ccPhysicsCollisionPostSolve: method isn't called

I just started using the SpriteBuilder with Cocos2d-v3 For the exercise of the SpriteBuilder, I practice in the tutorial of the following WebSite for the time being. …
user3321541
  • 221
  • 1
  • 16