A cross-platform, open-source mobile 2D game framework. It is a C++ version of the cocos2d-iphone project.
0
votes
0answers
6 views
Removing a CCNode from std::list causes error in XCode
I'm having trouble deleting items from a std::list containing CCNode object. XCode gives me the following error when trying to erase() an element:
error: address doesn't contain a section that ...
0
votes
0answers
7 views
Schedule selector error
I'm trying to port my iPhone app to windows 8, I have a problem with this line (it's objective-c) :
[self schedule:@selector(fire:)];
The equivalent on c++ should be :
...
0
votes
1answer
11 views
Running 2 CCSequence's on 2 Sprite's the second sprit doesn't preform the action
i have problem with CCSequence that is running action , and i dont understand why
i will be happy to know how to debug or solve the problem .
this is my code :
void ...
0
votes
0answers
4 views
Cocos2dx CCEsitBox Extention declaretion error
Hi I want to use CCEditBox and I added USING_NS_CC_EXT; and using namespace cocos2d::extension;.
But I am getting following error.
jni/../../Classes/LoginLayer.cpp:92:2: error: 'CCEditbox' was not ...
0
votes
0answers
9 views
Cocos2d x How to Sequence actions on different CCNods in the same time?
I need to run a Sequence of actions on different CCNods at the same time. Do I need to run 2 CCSequence::create ?
I need them to start at the same time and if I execute 2 CCSequence::create one after ...
0
votes
2answers
13 views
Why doesnt an added folder not show up in eclipse in project directory?
I am the tutorials from here
http://www.raywenderlich.com/33752/cocos2d-x-tutorial-for-ios-and-android-space-game
I added the resources link as in the tutorial, but it doesnt show up in eclipse after ...
0
votes
0answers
11 views
Working Eclipse Cocos2dx android project suddenly giving java.lang.UnsatisfiedLinkError: Couldn't load game: findLibrary returned null
Ok, I did my homework and searched around, but no one seem to be having quite the same problem, but tried solutions to similar problems to no avail.
The peculiarity of my issue is that the project ...
0
votes
1answer
13 views
Cocos2d-x How do i enable / disable ccTouchMoved events?
i have CCSprite that received ccTouchMoved event and can be dragged all over the screen
now i want to enable the user to:
1. move it for 5 or 10 pixels with the ccTouchMoved
2. the ccTouchMoved event ...
0
votes
2answers
19 views
cocos2d-x determine where a object will be based off its vector
In my game i want my towers to shoot where the enemy is going to be by the time the bullet reaches it.
i don't want my bullet to curve, i want it to shoot directly to the estimated location based on ...
0
votes
1answer
28 views
How to set multiple animations in cocos2d-x
I'm currently starting with cocos2d-x to build games for blackberry/android/iOS.
I have the png and plist for the animations of a character created with texturepacker. I load them with ...
-1
votes
0answers
24 views
Perform animation on images
Can anyone elaborate how the following functionality can be achieved in Android?
The use should be able to click a photo from the device camera and then perform these tasks:
Throw darts (if this ...
0
votes
0answers
12 views
Appxmanifest Access Denied
I try to run cocos2d for windows 8 apps.
I've follow the procedure describes in the official wiki, but each time I'm trying to launch a project (the helloworld project or a new one) I've got this ...
0
votes
2answers
31 views
how to change the position of player using left and right button when the player is jumping?
Cocos2d offers two ways to let the player jump up, but by using jumpto() and jumpby(), people could not change the position of the sprite any more when it is jumping up.
How to write a method so that ...
0
votes
0answers
11 views
InApp purchases Windows phone 8 using cocos2dx game engine
I am developing a game using cocos2d-x and I want to port it to Windows phone 8 as well as Android.
I plan to make the game free with in app purchases. But I do not yet know how to do that in windows ...
0
votes
0answers
8 views
An sssue about CocosBuilder timeline animation
I've created a CCLayer by using Cocosbuilder. There are two timeline animations called "MyAnim1" and "MyAnim2". None of them are auto-run. MyAnim1 is chained to MyAnim2. I'm using CCBAnimationManager ...