Cocos2dx build problem
i am using macOs(10.15.6) xcode12.0 beta 6 iOs 14 cocos2dx 3.17.2 Now i create a hello world project. when i am trying to run the project and i getting a lots of error like bellow plz help me...
View ArticleDestructor called on a Sprite child when autorelease
Hi I have an empty derived Sprite class. I addChild to it another Sprite class I created (lets call it ChildSprite). When I create the ChildSprite object, I do childSprite->autorelease(); However...
View ArticleXcode build working BUT Android Studio build not working as expected
(I am new to Cocos2dx) (Xcode with macOS, Android studio with Galaxy Note5) macOS = Version 10.15.6 Xcode = Version 11.6 Android Studio = Version 4.0.1 Phone (Galaxy Note5) = samsung sm-n920k I am...
View ArticleCustom Command in 4.0: How to draw a triangle strip
Hi there, I am now updating to 4.0 and have problems updating my custom commands where I would do custom drawing. Here is an example how I accomplished this in V3 - I would create a custom command and...
View ArticleZooming out just a bit cause everything to disappear
Hi I am trying to implement zoom out of perspective camera project using the mouse wheel. Created a new default Cocos Hello World project and added a method in HelloWorldScene called...
View Articlei have some problems Snake game
Firstly i am so sorry for my so bad english. I am new on game developing and i try learn. I try writing a snake game, but have 2 problems for now. My first problem snake dont stable while on move and...
View ArticleLoses object while reloading scene
hello all, I got stuck at very strange issue or bug. I have almost completed my game. When I played it multiple times, I found out that when I m reloading scene like retrying game then I loses a...
View ArticleCan't load debugging symbols on gdb
Hi, guys. I’m trying to compile my cocos2d-x cpp project with debugging symbols, so that I can debug it with gdb on vim, as I’m not a fan of IDEs. I’m doing so with the following command: cocos...
View ArticleAny easy way to import cocos2d v3.17 javascript into cocos creator?
Hello guys, i have an old game project written in cocos2d-html the game is compile for android using android studio (cocos2d-x 3.17) , is ay easy way to import / upgrade this project into cocos...
View ArticleCrop or mask image
Hi, i did crop image like this and with is coed. Original Image: Crop Image: crop image with green background. Code: clipper content size width and height var width = 200, height = 200, winSize =...
View ArticleGenerating APK build error android studio
Hey all, I have a ready application. I can use it by running from android studio but while generating apk for it, I got a build error Build command failed. Error while executing process...
View ArticleHowTo: Build for Apple tvOS ?
Please provide instructions on how to build for Apple tvOS - your documentation appears non-existent here and there is little to no useful information I could find online. 2 posts - 2 participants...
View ArticleCan I use ApplyImpulse along World Coordinates axes?
Hi, I have a player that is holding and rolling a barrel in front of him. I want to be able to throw the barrel vertically. I use the applyImpulse function. The problem is, as the barrel is rotating...
View ArticleIs cocos2d-x still being maintained?
Hi… I really present my apologies about the topic, but i’m wondering what is the future of Cocos2d-x, first, i need to say this engine is really confortable, and of course seems to be in a very mature...
View ArticleRotate Sprite3D by World Axis, not Local Axis
Cocos2d-x Is there any way to rotate a Sprite3D object by World Axis? 3 posts - 1 participant Read full topic
View ArticleHSV color modifier
Hello, I’m trying to change a sprites hue value using a js code Here is what I want: I looked up in the documentation but couldn’t find something that works perfectly as I wanted. A link or an answer...
View Articlehow to disable label's anti aliasing
I want to get a label with a clear outline. Mobile devices also display labels with blurred edges, like on windwos. I tried several methods, but either they weren’t valid anymore or there were only...
View ArticlePhysics Body spawns at wrong location
Hi, I have a problem due to my Physics Body spawning at (0, 0) when I create an enemy. My game is a sidescroller where the enemies walk from right to left and on the left side of the screen I use a...
View ArticleCocos2dx Sqlite Sqlcipher
WhatsApp Image 2020-07-17 at 14.49.08 (1)640×1280 61 KB I am using cocos v3.9, and I have been looking for a problem and a solution, someone suggested that I upgrade the version of the sqlcipher, but...
View ArticleCocos2dxDownloader.nativeOnProgress - crash on different android versions
Hello there, I’m using 3.17.2 version of Cocos2dx engine. When app is in background and download is started I’m getting this bug report in Firebase. Fatal Exception: java.lang.UnsatisfiedLinkError No...
View Article