Questions tagged [cocos2d-android]

JAVA version for Android development. Cocos2D is an open source framework for building 2D games and graphical applications. Cocos2D-Android and Cocos2D-Android-1 are the two active projects.

Cocos2D for Android is a Java based open source framework for building 2D games and graphical applications. Cocos2D-Android and Cocos2D-Android-1 are the two active projects. The latter is a branch of the former and seems more active.

Both Cocos2D for Android engines are based on the API design of Cocos2D for iPhone, but they are not compatible with each other (Java vs Objective-C).

For more information on the other Cocos2D game engines, see the and tag descriptions.

It is recommended to use the following tags appropriately:

  • Use the tag on questions referring to the Objective-C based framework
  • Use the tag on questions referring to the C++ based cross-platform framework
  • Use the tag on questions referring to the JavaScript based framework
  • Use the tag on questions referring to the Java based frameworks
  • Use the tag on questions referring to the Python based framework
  • Don't use any of the above tags together in the same question, unless your question refers to more than one Cocos2D engine. For example, if you ask "How to port from Cocos2d-iPhone to Cocos2D-x?" you should include both and tags.
398 questions
0
votes
1 answer

cocos2d: skeletal animation apply to cloth mesh which is added by addMesh to the character

I create many clothes which are saved in separate files, and we add cloth Mesh to the human character, the human character is acting with skeleton, but the cloth not, do you know how to make it work with skeleton? thanks very much! ~lindy
Lindy
  • 287
  • 5
  • 13
0
votes
1 answer

Cocos studio script

I'm a complete new user of Cocos2d, I've been using Unity for many days, but now I'm looking for a lighter engine to create a simple 2d drag and drop game for Android and iOS. I'm using Cocos Studio, I've created the scene and the Sprites, but now I…
0
votes
1 answer

How to implement circular clipper on an image in cocos2dx?

target is to achieve -> a circular clipper on the profile pictures in cocos2dx, so the profile picture looks like as they look like in the whatsapp profile picture nowadays. I want to set a clipper first on the profile picture, then scale it…
0
votes
1 answer

How to add text input field in cocos2d.Android cocos sharp?

I am trying to get CCTextFieldTTF to work in cocos sharp with Xamarin for an android application. But can't get hold of this for the life of me. Could not find any documentation on cocos sharp API either. Does anyone know how to use this class to…
javabot
  • 173
  • 10
0
votes
2 answers

cocos2dx- 3.7 and 3.7.1 cocos studio don't work

Hello I'm working on cocos2dx-3.7.1 and I want to create an Scene on cocos studio, when I try to import the csb file only whit the template Helloworld.png works, but if I add a new Image and place it on the Scene(cocos studio) and publish, when I…
finalpets
  • 281
  • 4
  • 6
0
votes
1 answer

How to add 3D Sprite on tmx file background using Cocos-2dx?

We have been working on sample game, wherein we want to show 3D sprite on .tmx file(background). But 3D sprite is never shown up, though we tried setting tileMap->setGlobalZOrder(-1). Following is the sample code: CCTMXTiledMap tileMap = new…
0
votes
2 answers

Sound not working on cocos2D JS v.3 + IntelXDK + Cordova

I have a problem with the audio that is not working on Android or an emulator. But it is working on web apps. I have searched in Google but i can't find the solution. Why does cc.audioEngine is not working while using Intel XDK ?
0
votes
1 answer

Cocos2D: Recognize multiple tiles next to each other

I'm currently building a platformer in cocos2d-x and therefore i'm using a tmxtiledmap and chipmunk physics. My problem is that in the moment EACH tile of the map gets its own physics body which obviously isnt really memory saving:D Is there any…
FreeZzl
  • 1
  • 1
0
votes
1 answer

About : Android cocos2d debug.py command

I am facing an issue while debugging a project which is build in cocos2d. Please tell me what to do. i have already done sdk,ndk ,ant, python setup.
CoolDeep
  • 41
  • 7
0
votes
3 answers

How to find the center point of Sprite in cocos2dx android using cpp

I am new in cocos2dx android game development, I want to know how can i get the center point of sprite in cocos2dx. I am using the version 3.3. Let me explain the problem I have one scheduler which call one of my function each 5 seconds. It will…
Bhavdip Sagar
  • 1,951
  • 15
  • 27
0
votes
3 answers

Getting error: Execution failed for task : myApp:compileDebugNdk'

Hi I am trying to run an app created with Cocos2d-x 2.5 with Android Studio but I keep getting this error when running the project: :myApp:compileDebugNdk AGPBI: {"kind":"ERROR","text":"*** Android NDK: Aborting... . …
c4sh
  • 701
  • 1
  • 8
  • 22
0
votes
2 answers

Is there any way to detect that cocos2d::ui::ScrollView stopped scrolling?

I can't find a way to detect scroll ending in cocos2d::ui::ScrollView. Does anyone knows how can I detect it?
s0nerik
  • 681
  • 2
  • 7
  • 14
0
votes
2 answers

set NDK_BUILD_PATH in Android.mk file

i'm trying to build a setup for game development(android) using VisualGDB and cocos2d-x. My problem is when i create a project using Third party library(Cocos2d-x) in VisualGDB i get the error "Toolchain test failed:cannot query the value of…
0
votes
1 answer

RotateBy Anchorpoint not affecting rotation

In Cocos2d (Android, JAVA), I use CCRotateBy to rotate one CCNode with several tiles in it as children. I want to use the center of the center tile as a point of rotation, so I thought I'd use Anchorpoint. However, it doesn't matter what value I…
Kees Koenen
  • 772
  • 2
  • 11
  • 27
0
votes
0 answers

Project generated with Spritebuilder 1.4.7 does not build

I just downloaded the latest, at this time, Xcode 6.1 then Spritebuilder 1.4.7 and the free version of the android plugin SBAndroid-Starter-a436a938.zip. I installed all these and generated an project and tried to run it on my Nexus 6 as well as an…
startoftext
  • 3,846
  • 7
  • 40
  • 49