cocos2d-x Questions

8

I'm using cocos2d-x v4, macOS Catalina 10.15.6, Android Studio 4.1. I made a project with cocos2d-x v4. I'm using Android Studio to build an android app. Until a few days ago it worked. But after u...
Festschrift asked 17/10, 2020 at 10:28

13

Solved

Is there a way to know the size of the keyboard that is shown in the screen? I am using Cocos2dx for programming, but I want to know the height of the keyboard shown in screen in the part of Andro...
Actinouranium asked 23/11, 2012 at 18:45

3

It appears you are building natively for Linux with GCC Cocos2dx on Linux : "cmake -G 'CodeBlocks - Unix Makefiles' -- OpenGL include dirs: /usr/include CMake Error at /usr/local/share/cmake-3.4/M...
Panarabism asked 11/12, 2015 at 19:11

4

After upgrade to macOS Big Sur 11.01 i get the following error: clang: error: no such file or directory: '/usr/lib/libz.dylib' clang: error: no such file or directory: '/usr/lib/libiconv.dylib' Com...
Streamer asked 15/11, 2020 at 7:45

1

Solved

In our game application for Android which is based on the game engine cocos2d-x, with most of the code being written in C++, we have a very strange and critical issue since Android 11: When the nat...
Disciplinant asked 28/10, 2020 at 15:37

1

I have updated android app with native libraries, that was build only for armeabi_v7 CPU architecture, and I added arm64 support after update. App was written in cocos2d-x. After update I started t...
Grow asked 19/6, 2020 at 12:55

4

Solved

Our game engine Cocos2d-x runs natively on android on its own non-Java-UI-thread. We need to call certain Java functions from C++ via JNI on the Android UI thread. For calling JNI-Functions, we're...
Blowbyblow asked 28/6, 2017 at 16:38

0

We have an ANR where the HeapTaskDaemon is blocked and the main thread is waiting and not busy/blocked. There are no parts of our code in any of the threads. How to debug this ANR? From what I see ...
Monseigneur asked 28/2, 2020 at 10:14

3

Solved

I am using Buildbox for my game. I implemented custom rewarded ads. The problem is that game music continues when rewarded video is open. I want to mute and unmute after video is watched. I know J...
Bedel asked 17/12, 2019 at 18:59

1

Solved

Please see attach image. In Xcode 11, Cocos2d-x giving error : Argument value 10880 is outside the valid range [0, 255] btVector3.h Error coming for code line y = bt_splat_ps(y, 0x80); // in file...
Decimeter asked 23/9, 2019 at 14:17

2

Solved

For some reason, even though my app name appeared correctly next to the app icon, when I looked for the app under settings->app, the name appeared to be "libcocos2dx" instead of the correct name. ...
Cudbear asked 14/8, 2015 at 4:37

3

Solved

Are there any new options for converting a spritekit game to android? It seems the only options are to recode everything in Java or to use Cocos2D, LibGDX, etc.
Shoer asked 8/3, 2017 at 19:33

1

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 /...
Tritium asked 15/1, 2015 at 8:40

4

Solved

I have some code that interacts with the Android Facebook SDK, Asynchronously. Unfortunately this means when it returns it is in a background thread. Cocos-2dx prefers me to interact with it in th...
Pergolesi asked 14/10, 2013 at 18:2

2

Solved

I have been messing around with android studio and I ended up installing cocos2dx and using an arm cpu emulator to work with cocos2dx. I have recently seen a message prompting for an update for the...
Raeraeann asked 12/11, 2018 at 19:53

1

I have a cocos2d-x project that I'm working on, I added cocoapods to it and originally all that was in "Other linker flags" was $(_COCOS_LIB_IOS_BEGIN) AND $(_COCOS_LIB_IOS_END) everything works fi...
Biblical asked 11/12, 2018 at 23:53

5

new firebase with awesome features was just announced, but according to documentation (https://firebase.google.com/docs/android/setup#prerequisites) android studio (as well as gradle) is required n...
Precipitate asked 19/5, 2016 at 9:32

2

Solved

I have been designing all my landscape oriented cocos2dx mobile games at 2508x1584 with a "always visible area" of 2112x1408 so there would be no black borders or scaling, just a bit of cropping wh...
Gadabout asked 17/2, 2018 at 3:27

2

Solved

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 ...
Kaylenekayley asked 22/5, 2018 at 9:32

3

Solved

I have a sprite (paper plane, for example). I'd like make it move like in the picture below. I can use lots of MoveTo and RotateBy actions to define the path by points, but it seems a bad idea to m...
Bothersome asked 6/4, 2014 at 11:8

3

Solved

Can anyone explain me why do we need to use CREATE_FUNC in Cocos2dx? I saw it in the HelloWorld samples and don't understand it clearly. Please, tell me more detail. Thanks.
Crites asked 3/3, 2014 at 16:25

0

I am new to cocos creator. I am working on a game and when i press home button and get back to app. then app is crashed. shows this error while debugging. android Fatal signal 11 (SIGSEGV), code 1...
Yaker asked 11/11, 2017 at 6:15

1

Solved

In cocos2d-x I need to implement fast gaussian blur and here is how it should looks like( I just found some game on the App Store with already done such blur, in unity): So, it's nice fade...
Impi asked 14/10, 2017 at 13:38

1

Solved

I have a lot of same graphics but different colors. I want to optimize it by colorizing from grayscale image. Also, I would like to change it color on a fly, during gameplay for a live sprite objec...
Mawkish asked 30/8, 2017 at 13:38

2

Solved

I need to replace colors of the sprite. Some example founded in google Here is I've found a looks like working solution for Unity - How to Use a Shader to Dynamically Swap a Sprite's Colors How to...
Alius asked 22/8, 2017 at 16:32

© 2022 - 2024 — McMap. All rights reserved.