cocos2d-iphone Questions
6
I'm making an iOS game using cocos2d libraries.
Lets say you have two objects that have two separate colours - defined in RGB as
Blue: 0,0,255
Yellow: 255,255,0
I want to add blue and yellow to...
Lustick asked 13/4, 2012 at 11:17
7
Solved
I have 2 objects and when I move one, I want to get the angle from the other.
For example:
Object1X = 211.000000, Object1Y = 429.000000
Object2X = 246.500000, Object2Y = 441.500000
I have tried...
Gorse asked 19/5, 2011 at 20:41
6
Solved
I am trying to use the UIActivityViewControllerCompletionHandler , but i dont quite get how..
I want to detect when the user finishes or dismisses this view controller (UIActivityViewController)....
Squarely asked 23/9, 2012 at 12:38
20
I'm having this issue on one of my ads for an ios game
Here is my code, the odd thing is that if I add the device on the request.testDevices list it displays the demo banner, if I remove from test...
Flatting asked 23/8, 2016 at 18:43
18
Solved
I am trying to run my cocos2d application and facing this error, as I have recently upgraded my sdk to 4.2 and my cocos2d to 0.99.5.
I tried to clean my project even change the Target ios Deployme...
Fulgurant asked 17/3, 2011 at 10:17
5
Solved
i am using cocos2d template with Box2d but when i import Box2d.h in my project it gives me error
cassert fiel not found
i have cocos2d version 2.0
please help me
Nevernever asked 24/8, 2012 at 11:38
2
Solved
I'm trying to make a simple subclass of CCNode, but I can't create the object.
It gives me the error "* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* +[Content...
Mide asked 14/8, 2014 at 0:6
2
I wonder in swift and xcode: how do I delete photos added in specific albums but not in others. For example photos added in camera rolls but not in other albums? I know in principle, apple make it ...
Asch asked 10/3, 2018 at 15:5
1
Solved
I'm using an old version of Cocos2d-iphone and need to come up with one last release before I completely reconfigure my app for Metal support. Until then, I'm trying to work through all the depreca...
Bilander asked 4/7, 2019 at 4:55
3
Solved
According to Steffen's post this is an efficient way to generate random BOOLs in cocos2d
+(BOOL) getYesOrNo
{
return (CCRANDOM_0_1() < 0.5f);
}
but how do I set a range for this? (e.g. 0 - 2...
Roomer asked 6/2, 2012 at 10:17
5
Solved
Each time I try to archive my application to submit it to apple Xcode keeps giving me this error! I'v Triple checked that in the Cocos2d libraries Target i made that my Install Group & Install ...
Calmative asked 28/9, 2011 at 21:23
1
Expected method to read dictionary element not found on object of type 'id<NSCopying>'
I am using Cocos2d-ObjC in my app and recently upgraded Xcode to v9.3. Now I have an error in "CCRendererBasicTypes.m" which says
"Expected method to read dictionary element not found on object of...
Niggle asked 4/5, 2018 at 0:10
3
Solved
How can I check to see if a date is inherently TOMORROW?
I don't want to add hours or anything to a date like today, because if today is already 22:59, adding too much would go over to the day aft...
Nano asked 1/10, 2012 at 22:25
7
I'm getting this error "The application bundle does not contain a valid identifier" after my application successfully compiles.This error prevents my game from launching on the phone or the simulat...
Greenock asked 20/5, 2011 at 13:38
3
Solved
I have a sprite (paper plane, for example). I'd like make it move like in the picture below.
I can use lots of MoveTo and RotateBy actions to define the path by points, but it seems a bad idea to m...
Bothersome asked 6/4, 2014 at 11:8
2
Solved
Background
I have an application I'm trying to archive and submit to the app store for approval. Part of the process requires the archive to be prepared and loaded using application loader. I used...
Jennyjeno asked 16/7, 2011 at 10:25
1
Solved
Note that Apple's doco asserts
https://developer.apple.com/documentation/spritekit/skphysicsbody/1519796-lineardamping
This property is used to simulate fluid or air friction forces on the body. T...
Misanthropy asked 12/11, 2017 at 20:32
4
Solved
We have set the following app settings to be iPhone only, but in the App Store the app is listed as iPhone/iPad compatible.
As you can see in the following image, the device family is set to be ju...
Mawson asked 26/5, 2012 at 15:8
2
Solved
I have a CADisplayLink that triggers a draw method in a Director object. I want to invalidate the CADisplayLink and then deallocate some singleton Cache objects that are used by the Director object...
Imputable asked 20/6, 2011 at 23:55
2
Solved
I try to extend the functionality of SimpleAudioEngine of cocos2d with the ability to play several sound effect one after another as some kind of chain. I tried to do this with an extension. Howeve...
Dandrea asked 8/5, 2012 at 16:26
4
Solved
I'm relatively new to obj-c, so I must be missing something, but my program crash when an enemy collides with a wall. I've located where I'm removing the enemy from the loop, while in the loop, but...
Attaint asked 10/12, 2011 at 18:19
6
Solved
I'm using Cocos2d-x and trying to detect touches in my HelloWorld project. Though I'm having no luck.
.h
class HelloWorld : public CCLayer{
private:
CCSpriteBatchNode * _batchNode;
CCSprite *_...
Clerihew asked 21/6, 2012 at 15:6
6
Solved
I have made android build using cocos2dx for the device having size 480*320 and it works fine but when i put the same build in another android device having size 640*480 the scaling issue occurs......
Inexact asked 27/7, 2012 at 7:10
2
Solved
I am adding the following code in the onEnter method.
doubleTapRecognizer_ = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleDoubleTap:)];
doubleTapRecognizer_.numberOf...
Foundation asked 7/7, 2012 at 22:24
8
How can I disable the touch detection within the action that running, because I don't want the character flying in the sky like a superman if the player clicking and clicking within the action, the...
Gratt asked 9/7, 2009 at 5:26
1 Next >
© 2022 - 2025 — McMap. All rights reserved.