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

How to animate Position in SpriteBuilder's timeline?

The only property I can seem to animate in SpriteBuilder 1.0.4 is Rotation. Is there a way to animation the other properties on the Timeline, such as Position? Edit Okay, I'm an idiot. I did a tutorial where it said press "R" to add a keyframe.…
Graham Nicol
  • 264
  • 2
  • 14
1
vote
1 answer

xCode 5.1 build crashes - SpriteBuilder

I recently updated xCode to 5.1. All of a sudden my (cocos2d) builds keep on crashing when publishing to my iPhone 5s (iOS 7.1). It works fine in the simulator (iOS 7.1). I got a screenshot here: http://puu.sh/7rB8S.png Also I got a bunch of…
Akaino
  • 1,025
  • 6
  • 23
1
vote
0 answers

Using Spritebuilder, crashing buttons

I am a 12 year old wannabe programmer so if answering, avoid being esoteric. (Use terminology a 12 year would understand) I am creating an app using Spritebuilder. I have two scenes: MainScene, and LevelSelect. That's self explanatory, but just…
Spoof
  • 283
  • 1
  • 9
1
vote
0 answers

How do I set-up XCTest unit testing with a Cocos2d-v3 / SpriteBuilder project?

I am using the new SpriteBuilder (was Cocosbuilder) and Cocos2d-v3 to build an interactive book. It is my normal practice to code using unit tests and I want this project to incorporate XCTest. So far I have gone to the test navigator in Xcode, hit…
Jon K
  • 160
  • 1
  • 13
1
vote
2 answers

Add CCButton programmatically

I am trying to adding CCButton in my Scene. I am using Sprite builder.Here is my code. CCButton *btnTest = [[CCButton alloc]initWithTitle:@"BNB test"]; [btnTest.label setName:@"Test"]; btnTest.position = ccp(150.0f, 150.0f); [self…
Nevil Lad
  • 533
  • 6
  • 20
1
vote
1 answer

hiding iAd in Cocos2d V3.0

i'm using Cocos2d-iphone v3.0 combined with sprite-builder to build my app.I just recently got iAd working following the answer seen here: How to add iAd in Cocos-SpriteBuilder So i wont repeat any of the code, the only thing I changed from the…
BasedRebel
  • 11
  • 5
1
vote
0 answers

How to replace an image of CCSprite with a UIImage in spritebuilder/cocos2d v3

CCTexture2D and CCTextureCached do not seem to work. What is the best way to replace an image of a CCSprite(created from spritbuilder) with a UIImage(an image taken from the camera)?
1
vote
1 answer

How to add iAd in Cocos-SpriteBuilder

I am using SpriteBuilder (which integrates with Cocos2d v3.0). I built an app and now I want to put in an iAd at the very top that pops up when I call it, and hides when I tell it to. What's the simplest way to do this? Keep in mind I am using…
nodebase
  • 2,510
  • 6
  • 31
  • 46
1
vote
1 answer

openGL error 0x0502 on Android when using Apportable and CCButton

Specifically, the error reads OpenGL error 0x0502 in -[CCES2Renderer resizeFromLayer:] 140 This error only occurs on Android, not on the iOS version. I found the lines of code that cause this error (disabling them resolves the issue, but I need…
TimPelgrim
  • 195
  • 1
  • 11
1
vote
1 answer

some aspects of cocos2d not working with spritebuilder?

I'm fairly new to developing with apple and everything and I just recently got into spritebuilder (or formerly known cocosbuilder) There is this problem that is just boggling my mind. From this line in XCode: [_bird runAction:[CCSequence…
bnynn
  • 501
  • 1
  • 6
  • 20
0
votes
1 answer

Installing Spritebuilder from source

I am trying to install spritebuilder but since it is no longer on the app store I have to do it through github. I ran the following code from the readme file on github. git clone https://github.com/apportable/SpriteBuilder cd SpriteBuilder git…
dulongj
  • 307
  • 2
  • 17
0
votes
1 answer

Twitter addImage returns False

Here's my code: if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) { UIViewController* rootVC = [self getRootViewController]; SLComposeViewController *tweetSheet = [SLComposeViewController …
Mattj33
  • 53
  • 1
  • 5
0
votes
1 answer

How to install and open SpriteBuilder ?

I am from Hong Kong and I have some problems when I was trying to install SpriteBuilder. SpriteBuilder cannot be found in Hong Kong's App Store,so I need to install it from Github. With zero Github experience, I try to follow the instructions from…
MCgun
  • 1
  • 1
0
votes
1 answer

How do I Install SpriteBuilder?

I am trying to follow MakeSchool's Online Academy for iOS game development, and the second step is to download SpriteBuilder from the app store. Since it's no longer on the app store, I know it is on GitHub but I have no experience with GitHub and…
Michael Kuron
  • 55
  • 1
  • 1
  • 3
0
votes
1 answer

SpriteBuilder Swift code connections nil reference and deallocation issues

I am using Swift (XCode 7.2.1) and SpriteBuilder (1.4.9) to create a game. However I am having some problems with the creating code connections between CCB files and Swift classes. I followed the tutorials online and added a doc root var code…
Choc13
  • 796
  • 7
  • 23