Quantcast
Channel: cocos2d-x - Cocos Forums
Browsing all 2748 articles
Browse latest View live

runtime error iOS - device info / Metal issue?

Trying to run app on an iOS device, and getting a EXC_BAD_ACCESS Call stack is: deviceMTL getInstance getDeviceInfo gatherGPUInfo setOpenGLView didFinishLaunchingWithOptions Seems like device = 0x0...

View Article


C++? whats the Quickist way to get file info for png, jpg, etc

Hello World, I’m building a desktop and have a File browser but I want to get info on that file. I can get filesize with FileutilsAndroid:: but is the a quick funcion that weill get size, scale, etc,....

View Article


Cocos2d-x v4 (C++) - not compliant with google play 64-bit requirements

Error message when trying to release: This release is not compliant with the Google Play 64-bit requirement. The following APKs or App Bundles are available to 64-bit devices, but they only have...

View Article

Image may be NSFW.
Clik here to view.

Problem with physics only happening in Android devices

Hi everyone, I’m making a Halloween game using Cocos2dx v3.17.2 and I have it ready for upload to the stores. I’m using Chipmunk built in physics created using PhysicsEditor, each object has different...

View Article

sprite filled radial effect

Hi, I wanted to do a sort of loading circle in cocos2dx but found nothing except for thishttps://www.youtube.com/embed/nrZUdrq2uLg how can i make it cocos2dx? do i need a shader for it or is it in the...

View Article


Someone is using RUDP networking with nat hole punching in cocos2dx

hello all im new to the framework , i like to do resource on mobile gaming which using RUDP for real time networking that using Open source librarys like eNET networking . Does someone have any...

View Article

Image may be NSFW.
Clik here to view.

Cocos2d-x v3.3 (Mac OS Big Sur) XCode 13 Property with 'retain (or strong)'...

Hello everybody My game is developed with cocos2d-x v3.3 and it working for iOS devices when I build it with XCode 11 in Mac OS Catalina(Version10.15.7) But this game not working if I update my iPhone...

View Article

Draw opengl primitives in Cocos2dx v4

Using this [CustomCommand · GitBook], how do I draw that triangle in this [https://learnopengl.com/Getting-started/Hello-Triangle]. 2 posts - 2 participants Read full topic

View Article


Struggling to compile older cocos2dx- project in Xcode just to update

Hey folks, a long time ago, a friend of mine worked with me on some code, it used Cocos-Studio which is now extinct, however, I do not need to make any design changes, I just wanted to open the app in...

View Article


Image may be NSFW.
Clik here to view.

Too many nodes lag

Hi, Spawning 10,000 empty nodes in a scene without any behavior or components causes frame drops tested on a windows machine Empty Nodes cause lag which is weird, why have a batching system for...

View Article

Use keyboard as controller

I have a JSB project running with 3.17.2 It is JS based and running fine on macOS, iOS and Android. I am adding a new feature allows player use their keyboard to control the game like old school PC...

View Article

Is there a way to use engine-native as cocos2d-x?

i see the c++ repo with name engine-native in cocos github page that used for cocos creator backend. is there a way to use this repo as cocos2d-x engine? it is more up to date. 2 posts - 2...

View Article

Black sprites after android activity is recreated

Cocos version is cocos2d-x-3.17.2 Sometimes after app is getting from background on android devices, some of sprites are black with no log what so ever. What could be wrong? Thanks! 1 post - 1...

View Article


Image may be NSFW.
Clik here to view.

How to rotate the 3D Object

Can somebody tell me how to rotate the player and enemy when i press the left button the player flip his face and when i get close to the enemy the enemy flip the face to the player I’m using cocos...

View Article

FBinstant ads showing only once

code reference am using:https://github.com/fbsamples/fbinstant-samples/blob/main/examples/ads/index.html The problem first-time ads will be load and I can display them in my game. but the second time...

View Article


How to load Cocos HTML5 game in ios devices ?

In my games app, I used to load the html5 games using URL from the server(during run time, build bundle files (index.html, index.js, CSS, etc…) used load). Now Apple rejected my game on ios devices...

View Article

Problem with physics only happening in Android devices (Part2)

I’m still having problems with built in physics using cocos2dx-17.2 only on Android devices. I had to cancel this minigame for Halloween because is really unplayable. Here is the intended and normal...

View Article


How can i create new c++ project without cocos python CLI ? only CMAKE

I dont want to use the cocos CLI and i dont have python 2.7 and looking at the code there i can see some information sending function any way i like use only CMAKE Does any body know or created way to...

View Article

Help with Command Prompt

I’m getting the following error after trying the cocos command in windows 10 command prompt, can someone help me resolve this, I checked out " Cocos2dx Setup.py" and went to advanced settings to...

View Article

Cocos2dx-2.26 Android Project compiling?

Hey folks, I know it’s very old (2.26) however a few games of mine use it, and I have not been able to change anything due to not getting the code to recompile. I tried creating a blank v3.17 project...

View Article
Browsing all 2748 articles
Browse latest View live


Latest Images