addChild removeChild bug / error
(redBox is a child of the scene) Parent and Child relationship Visualized Untitled.0011920×1080 254 KB Untitled.0021920×1080 72.5 KB (Changed variable naming, simplified) 6 posts - 3 participants Read...
View ArticleBlending mode changes in v4?
Hi, I’m porting some code from v.3 to v.4. Got some scribbling environment, where I have a sheet that can be scribbled over, but it should not be allowed to scribble outside it. For that purpose, I...
View ArticleBuild cocos2d-x with visual studio 2012 hits 0x000007b
Hello dear forum! I am trying to build cocos2d-x with Visual Studio 2012 but am failing. And show error image1366×768 65.4 KB . I would be grateful if someone could help me : ) Thanks for your time! 1...
View ArticleIn cocos2dx v4.0, the screen becomes half size when you change the device...
Hello. I was using cocos2dx v3.12 in my iOS app, but I upgraded to cocos2dx v4 due to performance and the removal of UIWebView. However, when I upgraded to the v4 system, I had a problem....
View ArticleHandling JNI callback for Android
Hi, I am integrating third party SDK and they have a few callback. I used JNI to call their methods and everything works fine but I cannot find a way (nor example anywhere) how to handle the callbacks...
View ArticleTexureGL.cpp updateData 207 error
Hi!! My game runs, but on console there is an error message: cocos2d: ERROR: compileProgram: failed to link program OpenGL error 0x0501 in...
View ArticleUsing actions on non scene objs
Hi! I have created an object called soundclip, it manipulates everything related to AudioEngine,… For instance, a main menu bgm, the main menu bgm is in my case a soundclip that contains an ushort Id...
View ArticleHttpRequest async
Hi ! I’m having a problem and I’d like to hear some opinions The question is pretty simple: how to do a cocos2d::HttpRequest asynchronous? Example: HttpRequest* request = new HttpRequest();...
View ArticleError Adding PhysicsSprite3D In A Scene
I want to add a PhysicsSprite3D in a scene. But it shows a weird error. (I think I did the Physics3D setup wrong.) (ThreeD is the name of my class) #include "physics3d/CCPhysics3D.h" // the following...
View ArticleHaving trouble with zooming the view closer to the player
Hi! I am new to cocos2d, but otherwise an experienced programmer. In my project, I currently have a player sprite, that has a child sprite, in the middle of the view. The player sprite is moving...
View Articlea few questions about v4.0 render
First: why does it work? void main() { gl_FragColor = vec4(1.0, 0.0, 0.0, 0.0); } I mean alfa value does not work. I have red color with alfa 0.0 Second: why does a Sprite3D’s color mix with parent?...
View ArticleWindows Universal Platform (UWP) Support
Can you add back Windows Universal Platform (UWP) support to version 4? 1 post - 1 participant Read full topic
View ArticleWhat Is the Proper Way of Speeding up the Entire Game?
I’m creating an evolution simulator using cocos2d-x, which uses the physics engine extensively. As you can guess, I need to control the speed of the simulation. In the scene where I want to control...
View ArticlestopAction() v3.17.2
Hi guys, can i get a little help please? if i create a Sequence: auto cb = CallFuncN::create(CC_CALLBACK_0(animationEnd, this)); cb->setTag(someID); auto seq = Sequence::create(animate, cb,...
View ArticleScanning files to index never ends in Android Studio 4.1
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...
View ArticleCan’t assign CC_CALLBACK_2 member function to setCompleteListener
I’m trying to set a member function as a callback for an spine::setCompleteListener. When i use cocos2dx v3.9 it’s work well, but now i use cocos2dx v3.17 and i got this error. here is my code auto...
View ArticleMigrating from 3.10 to 4.0
Hi folks! I want to move my C++ cocos2d-x Win32 project from cocos2d-x 3.10 + VS2013 + Cocos Studio to cocos2d-x 4.0 + VS2019 because both 3.10 and VS2013 are very outdated. So, I have few questions:...
View ArticleHow can i resize the app display in xcode
hey guys i’m using xcode with cocos2d-x 4.0 version. i made a game and i’m readying to release for ios. then my game display size matched with android and i wanna match with ios display size too. !...
View Articlelistview scrollbar question
Hi, I have a question about the scrollbar in the listview. This is the order of operation. Add 20 items with pushBackCustomItem Move scrollbar to the bottom Create a menu button and add 10 item (use...
View ArticleBest way to update texture data...?!
I have a class and this extend from Sprite, this class init with texture. I update the texture with data(buffer video) in a loop. I don’t know if this is correct, but workly… If anyone can advise me...
View Article