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 for Android: Conversion to Dalvik format failed with error 1

This is my first time using Cocos2d for android and I am trying to integrate it as a library from source code(I haven't tried the jar file yet). when trying to run the application he following error occurs: UNEXPECTED TOP-LEVEL…
ColdFire
  • 6,764
  • 6
  • 35
  • 51
0
votes
2 answers

How can i override ccTouchbegan in cocos2d-android( removal of overlaying sprites)

I have a set of sprite lists.i want to remove the topmost lying sprite if the sprites overlap. if ( popRect1.containsPoint( popRect1, location ) ) { BaloonList1.remove( baloons ); …
SIDDHI
  • 129
  • 3
  • 11
0
votes
1 answer

Pass argument to callback function COCOS2D Android

I've started working with cocos2d few days ago...and im working on small 2d game. I figured out how to animate sprites. Now when sprite finished with animation I want it to be cleared from screen. How to pass argument to callback…
Veljko
  • 1,893
  • 6
  • 28
  • 58
0
votes
1 answer

How do create a top view of a train on the tracks with the Box2D physics engine?

I think it would be fun to model a top view of a train following a track, traversing switches and so on, using a physics library like Box2D. What joints and motors would I need to make this work? I'm curious about how to implement the forces needed…
0
votes
1 answer

ANDROID:How to open web page in class extends CCLayer

I am newbie in cocos2d game development and developed 50% game using of Cocos2d SDK Android.I am stuck when the user plays certain level of game more than 3 times then i have to redirect him to google play url to rate my app but not able to do this…
0
votes
1 answer

How to refresh a page when using cocos2d in android

I have added some sprites to a page and I am adding new sprites to the same page removing all previous sprites based on the touch action. After every touch it needs to be refreshed. So, how to do this refreshing task? TIA...
Manjunath
  • 2,063
  • 2
  • 29
  • 60
0
votes
2 answers

Appropriate image sizes to support various android phones & tablets

I am developing an android game in cocos2d. How many different sizes of images do I need to support android devices and tablets?
0
votes
1 answer

How to add panels in android using cocos2d

I want to add a sliding panel view using cocos2d for android. Any suggestions.
Manjunath
  • 2,063
  • 2
  • 29
  • 60
-1
votes
1 answer

Add textview in Cocos2d really need

I need to implement TextView widget in cocos2d-android-1 and don't know how please help TextView textView = null; textView.setText(R.string.billing_not_supported_message); addChild(textView); This code not working because addChild needs node.…
VyacheslavK
  • 39
  • 1
  • 5
-1
votes
1 answer

Implementing loop of images in android

I want to implement the loop of my android game if some body could help me I have loaded random images on image view. Now i want to accelerate my image from bottom left of screen to center of screen making an angle of 45 degrees.after reaching the…
Muhammad Asif Raza
  • 647
  • 2
  • 5
  • 24
-1
votes
1 answer

ccpDistance() function in cocos2D android

I am working on a game in Cocos2D android. I found that some of the functions are missing in android cocos2D like ccpDistance(), ccpMidpoint() etc. where can I get the library for these?
James
  • 13,891
  • 26
  • 68
  • 93
-1
votes
0 answers

Decrypting help on IDA Pro/XXTEA

I'm working with a game that is no longer available, i want to remake it but when i try to decrypting the game i found out it made by cocos2d game engine and the lua script is encrypted in xxtea. And now i'm trying to find the key of it in the…
NoName
  • 1
  • 1
-1
votes
1 answer

Cocos2dx Crash - Version 3.17.2

how to solve these cocos2dx game crashes? following is the backtrace: Fatal Exception: java.lang.AbstractMethodError: abstract method “void android.content.pm.PackageManager$OnChecksumsReadyListener.onChecksumsReady(java.util.List)” at…
-1
votes
1 answer

clang++: error: linker command failed with exit code 1 in Cocos Creator Android Studio. Possibly _stack_chk_fail_local

I am trying to build and Android game using Cocos Creator. But to build the .apk I will need to use Android Studio. When I try to build APK(s) in Android Studio via menu Build > Build Bundle(s) / APK(s) > Build APK(s) it throw me this error: Build…
noobsee
  • 806
  • 15
  • 29
-1
votes
1 answer

How to Create a string array in cocos2d-x 3.17v

I am new to Cocos2d-x I am using 3.17v i am have some trouble i am not able to create a string in cocos2dx i want to create a string array for storing sprite file names String* cars[5]; I Tried this it is not working and an error is occur saying…
1 2 3
26
27