Questions tagged [cocos2d-x-3.x]

Cocos2d-x is an open source game engine under MIT license. It can be used to build games, apps and other cross platform GUI based interactive programs.

Cocos2d-x is an open source game engine under MIT license. It can be used to build games, apps and other cross platform GUI based interactive programs.

Cocos2d-x allows developers to exploit their existing C++, Lua and Javascript knowledge for cross-platform deployment into iOS, Android, Windows Phone, Mac OS X, Windows Desktop and Linux, saving time, effort and cost. Cocos2d-x is fast, easy to use and loaded with powerful features.

Source: http://www.cocos2d-x.org/wiki

56 questions
0
votes
1 answer

Implementing Parallax on Z-axis in cocos2d-x V3.10

It's been not very long I'm using cocos2d-x. It's fun and is quite easy to get hands on. But recently, I'm stuck while implementing something. ( It's been a while now). I have implemented Parllax on X and Y axis. Was a easy job. But when I try to…
Vineet
  • 47
  • 8
0
votes
0 answers

cocos2dx v3.10 game Application is getting dead in android (can't load native library)

i have developed game in cocos2dx v3.10 and want to deploy it into android platform i have prefer to use android studio for it. first i have compile project using below command $cocos compile -p android --android-studio when i load project in…
0
votes
1 answer

Cocos2d-x HockeyApp integration

I tried to integrate HockeyApp in my cocos2d-x project, using following link:- http://support.hockeyapp.net/kb/client-integration-android/hockeyapp-for-android-ndk-early-access But it gives me following error when I tried to run ndk-build…
0
votes
2 answers

Why is touch event triggered even when I touch outside the sprite?

I have a ui::ScrollView containing a number of sprites. I have created each sprite and added a touch listener to each sprite by doing something like: for(int i=0; i < 5; i++){ Sprite* foo = Sprite::createWithSpriteFrameName("foo"); …
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

How to create UI button from SpriteFrames?

A "Button" can be created by: ui::Button* button = ui::Button::create("button.png"); How can we use a sprite sheet for this ? EDIT: If I just put the name of a sprite frame for example: ui::Button* button = ui::Button::create("button"); Then it…
Rahul Iyer
  • 19,924
  • 21
  • 96
  • 190
0
votes
1 answer

How to check for specific collisions in cocos2d-x v3.1? C++

I'm attempting to check for specific collisions between sprites with Physics bodies. The problem is that I don't know how to assign either a tag to each node physics body or set the collision bitmask properly for each sprite. I am successfully…
SaundersB
  • 607
  • 2
  • 12
  • 25
0
votes
1 answer

how to handle JNI, hardware interrupt in cocos2dx

I'm facing with a lot of crash when try to addChild, removeChild inside hardware interrupts, or JAVA callback. My game has a soft button to call to java, in order to use voice recognition. The context: C++: btnRecord pressed -> JAVA:…
0
votes
1 answer

Using Physics Editor and using it's .plist Cocos2d-x V3 for better collision detection

I was working on a cocos2d-x project. Its a simple game. Everything is working right apart from collision. Though, It is working but collision is not very realistic. I browsed and discovered something called - Physics Editor. I read tutorials from -…
Vineet
  • 47
  • 8
0
votes
1 answer

Cocos2d-x 3.9 wrong origin and visible size when in landscape?

I put my profile in landscape:
Roy
  • 880
  • 1
  • 12
  • 27
0
votes
1 answer

OnTouchMove event not triggered

I'm trying to drag and drop a sprite in a simple scene. The onTouchBegan and onTouchEnded events trigger as they should but the onTouchMove event doesn't trigger, why ? Here is my code : class Test: public cocos2d::Layer { public: static…
Csi
  • 526
  • 3
  • 22
0
votes
1 answer

CCBlade does not work on the cocos2d-x 3.8 version

-My platform : Mac -cocos2d-x Version : 3.8.1 -Tool :Xcode -TestDevice : ios Simulator i used this link enter link description here i implemented to the blade effect, as in "Fruit Ninja App". it is no problem on the…
anchor
  • 33
  • 6
1 2 3
4