Does HttpRequest support keepalives for connections?
I’ve set up an nginx server so I can host my login and signup system for this game and load the scores Problem is that I’ve told nginx to keep the connections open for 120 seconds and it seems that...
View ArticleWebsocket connection error on iOS 3G/4G/Wifi
Hi! I’m using Cocos2d-x C++ 3.17 version and the connection on iOS seems to be wrong sometimes for no reason. On 3G/4G, or even sometimes on Wifi the connection cannot open with error 65, and these...
View ArticleNew Tutorials Poll
Hey everyone. What tutorials would you like to see? 1 post - 1 participant Read full topic
View ArticleHow to best develop using TypeScript in cocos2d-x or with Cocos Creator?
My deployment targets are: native-mobile (iOS+Android) native-desktop (Mac+Linux+Win) web (desktop+mobile) for Android: Google Play + WeChat mini games To meet the above requirements the JavaScript...
View ArticleDraggable scroll bar
I’ve searched around on this, and the consensus seems to be that we can’t have a clickable scroll bar. It’s not critical, but definitely a nice-to-have, especially on Windows, so I was wondering if it...
View Articleloop parallax in cocos2dx 4.0
Hello, as always i try to check previous tutorials before asking.I found this one quite interesting: https://rezghob.com/parallax/ Before doing that, I was just wondering if there isn’t a default...
View ArticleApply action only to sprite and not the phyisics body attached?
Hi, I have a layer containing several sprites with physics bodies attached (the base and the pieces in the picture). When a piece makes contact with the base or other pieces a shaking effect occurs to...
View ArticleKey held and update pointer problem
Hello, I found this thread about how to make a sprite move by helding a key pressed (please let me know if there’s has been a new solution since that post from 2018)....
View ArticleHow are you managing source code repository for cross platform project?
Are you using separate repositories for classes, android and ios specific code? This could be tedious in setting up a new work environment for a new developer. But if you have just one repository, the...
View ArticleHow to generate prebuilt libraries with cocos2d-x v4?
I am following this link: https://docs.cocos.com/cocos2d-x/manual/en/editors_and_tools/prebuilt_libraries.html But when I run: cocos gen-libs (with any argument or even no argument) I receive the...
View ArticleHow to add libz and libiconv?
I have these errors: clang: error: no such file or directory: ‘/usr/lib/libz.dylib’ clang: error: no such file or directory: ‘/usr/lib/libiconv.dylib’ Command Ld failed with a nonzero exit code These...
View ArticleFbx-conv Universal for M1
Hello everyone! Someone had compiled fbx-conv native for Mac M1? Can you give to me fbx-conv Universal version? I’m a new developer, please! 1 post - 1 participant Read full topic
View ArticleError: The name followed by "::" must be a class name or a namespace name
this code shows the error: error: The name followed by “::” must be a class name or a namespace name. the code as follows: auto btn = Button::create("start.png","start_1.png"); 6 posts - 2...
View ArticleDealing with opposite keys pressed at the same time
Hi, I have a character that by default has a idle animation. When pressing the right arrow it moves to the right and triggers a walk cycle animation. And to the left, the same cycle with a scalex -1....
View ArticlejumpBy action multication
Hello, I was wondering if it is possible to change the property of an action after creation. Say we create a jumpBy action in the init, and later, depending on how long a key is pressed, we want to...
View ArticleAndroid build error: use of undeclared identifier
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticlePomelo Game Server
Anyone know if Pomelo is still supported or if it is even feasible to use anymore? Any alternatives? 1 post - 1 participant Read full topic
View Article[Vs2017] Need help to build *.EXE Win32 Release Mode
Hello all! I used Vs2019, but cocos2d-x doesn’t support for it when build *.exe, So I removed it first. I install Vs2017 [build tool 141] and run in VS oke, I go CMD to build DEBUG mode : cocos...
View ArticleHow not to depend on delta in update()
hi, was setting jump using delta as follows: when i press the jump button, a timmer float variable is trigger. All I do is timer += delta; and then when the jump stops I reset timer to zero. This...
View ArticleWhat Ad Libraries Does Everyone Use?
Hello Cocos community, As the SDKBOX is now discontinued, which ad libraries and implementation methods does everyone use? Would love to hear everyone’s opinions. 1 post - 1 participant Read full topic
View Article