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
-1
votes
1 answer

Python unable to detect file, throws an error

I run a cocos2dx to generate an APK file, but it throws out this error BUILD SUCCESSFUL in 7m 49s 54 actionable tasks: 3 executed, 51 up-to-date Traceback (most recent call last): File "/cocos2dx/tools/cocos2d-console/bin/cocos.py", line 1072, in…
Moses Liao GZ
  • 1,556
  • 5
  • 20
  • 45
-1
votes
1 answer

cocos2d-js Adding a Sprite to a Menu

I currently trying to write simple menu. So far i can add menu fonts to the menu, but when i try to add sprites, the sprites don't appear. var normalImage = new cc.Sprite.create(res.tv_png); var menuItem1 = new cc.MenuItemFont("Item1",…
-1
votes
1 answer

I'm trying to make a clone of game just for practice. But I'm not able to put the right gameloop

I'm a beginner and started with cocos2d-x. I want to make a clone of the game - https://play.google.com/store/apps/details?id=com.addictivegames.angryalcohol&hl=en It seemed really easy but turns out the logic I have been using at "Update function"…
-1
votes
1 answer

How to Detect the CCSprite Touchevent getBoundingbox equals of CCTouches

I am new to COCOS2d. I am using ccsprite with animation as a button. Now i am struggle to detect the CCTouches and CCsprite getbounding box are equals for click event.
Bebin T.N
  • 2,539
  • 1
  • 24
  • 28
-1
votes
1 answer

How to increase levels in cocos2d-android?

Currently i have made gameScene using cocos2d-android game engine, where all the functionalities of projectile and targets are included, in order to increase the levels upto 10 as speed increases, should i have paste all the code from gamescene to…
DD.
  • 973
  • 2
  • 10
  • 32
-2
votes
1 answer

When I compile my project I get error: Unable to find a javac compiler

I am trying create a simple game in cocos2d-x, but when I compile my project I get the following error. BUILD FAILED D:\Android\sdk\tools\ant\build.xml:597: The following error occurred while executing this line: …
-2
votes
3 answers

What is a plist file and what is the benefit of it?

plist is belong to the iPhone but how to use in cocos2d-android game Engine ? Is this possible or not ??
Akarsh M
  • 1,629
  • 2
  • 24
  • 47
-3
votes
1 answer

Stop background music for cocos2d Android

To stop the background Music after pressing "PlayGame" button in cocos2d-android, have given like SoundEngine.sharedEngine().playSound(context, R.raw.rock, true); since i could not find code for stop background music, i have given pause method, once…
DD.
  • 973
  • 2
  • 10
  • 32
1 2 3
26
27