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

How to apply impulse after an object collide another? [Chipmunk]

I'm working on a game (with Cocos2d 3.0 and SpriteBuilder) in which a character smash another and gain impulse. To do this I'm trying the following: -(BOOL)ccPhysicsCollisionPreSolve:(CCPhysicsCollisionPair *)pair hero:(CCNode *)hero goal:(CCNode…
Jesod
  • 51
  • 7
0
votes
1 answer

Animating a Sprite in Cocos2D and Spritebuilder

in the project i'm working on I have multiple characters you can play as (in this case I will refer to them as drones). In my gamescene I have all the physics setup through _drone. A .CCB file created with spritebuilder. Previously I had this file…
BasedRebel
  • 11
  • 5
0
votes
1 answer

Can't access CCNode as child of scene

I'm very new to the spriteBuilder and cocos2d, which means I'm fairly certain I am doing something wrong... I just don't know what. I've added a CCNode into a "level-scene" that I load as a child scene to my "gameplay scene", but I can't seem to…
Jens Hendar
  • 174
  • 1
  • 2
  • 10
0
votes
2 answers

How to create simple start screen using spritebuilder?

At the time of this post, I am using the latest versions of XCode and SpriteBuilder. I have 2 games, one of which is built using purely Objective-C on XCode and another which uses Objective-C on XCode as well as SpriteBuilder. The non-SpriteBuilder…
user3290191
  • 19
  • 2
  • 7
0
votes
1 answer

Cocos2d Remove a ChildByName

Hi I'm trying to add multiple nodes that are the same and assign them different names and then remove one of them when the count gets above 2. All of this works except it is crashing when removing the child by name and returning the error "Invalid…
Inovize
  • 233
  • 3
  • 13
0
votes
1 answer

Cocos3d and pod files on CocosBuilder or SpriteBuilder

In an iOS game. I'm using POD files in cocos3d to load some 3D animations. It is possible to add those animations in SpriteBuilder (or previous CocosBuilder) and load it in the game. If not what is the best possible alternative.
Waruna
  • 1,174
  • 1
  • 9
  • 20
-1
votes
1 answer

How do i add a CCPhysicsNode In Spritebuilder?

Im doing the tutorial and make school (https://www.makeschool.com/academy/tutorial/learn-how-to-build-flappy-bird/let-the-bunny-fall-1d2b5d5e-d0ec-4b78-9570-86128e33f9f1) and i cant add a physics node. I cant find it to drag it in to my game. Can…
Connor Q
  • 1
  • 1
-1
votes
1 answer

Sharing Property information between classes in Obj C

I've been trying to share information from one of my classes to another one (trying out something for Spritebuilder) and it's just. Not. Working. I want to change the text of the label in the second class to a string I define in the first. Here is…
Misha Stone
  • 631
  • 7
  • 22
-1
votes
1 answer

cocos2d can't get started with physics

So apparently the cocos2d community thinks I'm a spammer because I don't understand their tutorials, so here I am :D Hey I'm just trying to get physics working with a single object but get "failed to find a parent ccphysicsNode for this…
shwick
  • 4,277
  • 6
  • 21
  • 28
-1
votes
2 answers

From Spritebuilder to Xcode CCSprite

I have a Question, I added an CCSprite with Image, now I want to work on this CCSprite in XCode, but I don't know how can I link it? Yeah I know thats, a easy question, but not for me, Can you help me? Have I used a Custom Class name?
J0k3R
  • 303
  • 1
  • 14
-1
votes
1 answer

can i use spritebuilder to develop cross platform mobile app?

I wanna develop a game app, which should be platform independent. is spritebuilder a cross platform?
SaRaVaNaN DM
  • 4,390
  • 4
  • 22
  • 30
-1
votes
1 answer

Which files should I add to gitignore when working with SpriteBuilder?

Hello everyone! I'm about to start my first project using SpriteBuilder and Xcode. I want to set up git. While I usually add the common Xcode files to gitignore (the ones in the list below) I'm not sure which SpriteBuilder specific files I should…
-1
votes
2 answers

Not casting properly?

I'm following this tutorial. And I keep getting this casting error. I've imported the Obstacle.h file in the shown class (MainScene.m). I have no idea what I'm doing wrong - (void)spawnNewObstacle { CCNode *previousObstacle = [_obstacles…
stumped
  • 3,235
  • 7
  • 43
  • 76
-2
votes
1 answer

Adding a UIViewController in Swift

I have created a new class in another file in Swift. The second class is a UIViewController that will have mediaPickers in. I want to add this viewController to scene, but I can't figure out how. I have tried …
virgil debique
  • 357
  • 2
  • 11
-2
votes
1 answer

How can I add iAd or Google AdMob to a Cocos2D project using Swift?

I'm currently in the process of finishing up my game, and I would like to know how I can integrate iAd or Google AdMob to my Cocos2D project that I have coded in Swift. My knowledge of Objective-C is very, very vague, so I wasn't able to understand…
Zachary Espiritu
  • 937
  • 7
  • 23
1 2 3
18
19