Questions tagged [cocos2d-x-3.0]

C++ version of cocos2d. Cocos2d-x version 3 is a rewrite using the C++ 11 standard, replacing the previous Objective-C styled memory management philosophy, opting instead for Array & vector dereference signals.

The highlights of cocos2d-x v3.x are:

  • Replaced Objective-C patterns with C++11 and STL library patterns and best practices.
  • Renderer allows parallelism between graphics thread and UI actions
  • Improved Labels
  • Improved renderer
  • New Event Dispatcher
  • Physics integration
  • New GUI
  • Javascript remote debugger
  • Console module
  • Refactor Image - release memory in time and uniform the api of supported file format
  • Automatically generated lua bindings, add LuaJavaBridge and LuaObjcBridge
  • Templated containers
757 questions
19
votes
1 answer

Permission Denied Opening ligEGL shader cache file

As I mention in the title, my app built successful but show a blank screen and quit after a few second when I run it on device (SS GLX Tab3 Intel). And the logcat showed error opening cache file…
Nikel Arteta
  • 548
  • 1
  • 6
  • 25
17
votes
2 answers

Why isn't an animation flipped horizontally when I call setFlipped(true)?

I have some sprites, where the player character is facing to the right. I can create an animation from those sprites just fine. The problem is, if I want the sprites to face to the left. I do the following: Sprite* p =…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
16
votes
0 answers

Requested but did not find extension point with identifier Xcode.DVTFoundation.DevicePlatformMapping

Getting this warning when simulating an iPhone 4 in OS X using the Cocos2d-x engine. It's being spit into the terminal and I have to perform a Control-C to take back the terminal. The entirety of the warning is this: ios-sim-xcode6[30350:2161521]…
aardvarkk
  • 14,955
  • 7
  • 67
  • 96
15
votes
3 answers

How do you load a scene while animating a sprite in cocos2d-x?

I have a "stage selection" scene and a "game" scene. However when the user presses the button to start the game scene there is a delay between the pressing and the scene showing (about 2 seconds or more on older devices). So what i thought is i…
Pochi
  • 13,391
  • 3
  • 64
  • 104
10
votes
1 answer

How to debug cocos2d-x 3 native code on android device

I could not find any cookbook/tutorial how build in debug build a cocos2d-x 3.1 project for Android and how to debug it directly on device. Please help by pointing out steps. What I do and what problems I have: cd proj.android cocos compile -p…
Narek
  • 38,779
  • 79
  • 233
  • 389
9
votes
3 answers

invalid use of 'this' outside of a non-static member function error?

I am using CCTouchTargetedDelegate with a Class subclassed by CCSprite. when defining delegate methods i am not being able to use "this" inside the functions. as answered on previously asked questions I couldn't used name of class with the function…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
9
votes
1 answer

Can't get touch to work in multi-platform cocos2d-x app

So I'm trying to create a simple app using cocos2d-x newest build and for some reason can't get my touch wired up. Here are my classes: class GameLayer : public cocos2d::Layer { public: static cocos2d::Layer* createLayer(); void…
Kevin DiTraglia
  • 25,746
  • 19
  • 92
  • 138
8
votes
1 answer

Compile Error For cocos2dx3.10 android

Cocos2dx v3.10 facing some unusual error.in compiling andoird Cocos :- 3.10 Mac :- 10.11.4 (OSX EL capitan) NDK :- android-ndk-r9d ANT :- apache-ant-1.9.6 Android NDK: WARNING: APP_PLATFORM android-15 is larger than android:minSdkVersion 9…
8
votes
4 answers

What are the advantages of using cocos2d-x 3.0 over cocos2d-x 2.x?

Cocos2d-x 3.0 alpha was released for some time now. What was improved over cocos2dx-2? The features list is quite important, but in terms of performance are there new limitations/improvements? Have you noticed real improvements in performance,…
Coyote
  • 2,454
  • 26
  • 47
7
votes
3 answers

why "cocos compile -p android" gives "The android command is no longer available." error

I am working on a cocos2d-x project. i always compile android project using cocos command cocos compile -p android --android-studio -m debug. But now this command returning an error. The android command is no longer available. For manual SDK and AVD…
Aqeel iqbal
  • 515
  • 5
  • 18
7
votes
2 answers

Memory not releasing when Replacescene in cocos2d-x 3.2

I am developing game in cocos2d-x 3.2 and my app memory increase with game progresses & it seems resources memory not releasing while scene replacing in cocos2d-x 3.2 , please help
shaqir saiyed
  • 732
  • 1
  • 10
  • 36
7
votes
0 answers

CCPhysicsjoint not keeping the 2 bodies intact

I want to add a particle body(say Fire) before another physics body(the arrow). So, i am using the spring joint to keep them joined with stiffness around 20000, but still its starting the correct way and the particle-body swings away form the arrow.…
Adarsh Roy
  • 69
  • 6
6
votes
1 answer

Integrate Cocos2dx project within Swift Project (XCode 6.3)

I have 2 separate Projects one is in Cocos2dx v3.6 and one is in Swift. I want to start a game from the Swift project. How can I do it? I have copied whole cocos2dx project into my Swift project and then created one View Controller in swift and…
Anand
  • 1,129
  • 7
  • 29
6
votes
1 answer

cocos2d-x android set up error - java.lang.NullPointerException

I'm trying to set up cocos2d-x for android and I followed a video tutorial I passed the steps for terminal without any problem (setup.py command result is as expected). My problem is after I set NDK_ROOT in C/C++ Build - environment section, I get…
salih
  • 61
  • 1
  • 3
6
votes
4 answers

Linking errors when adding AdMob to IOS cocos2d-x 3.2

i trying to add AdMob to cocos2d-x 3.2 simple game using Xcode 5.1 iOS 7.1 i following the tutorials in https://developers.google.com/mobile-ads-sdk/docs/#ios and…
user63898
  • 29,839
  • 85
  • 272
  • 514
1
2 3
50 51