CC_PROPERTY related error
I am changing cocos2d-x version 3.8.1 to 3.17.2. I am writing these libraries in my project. GitHub GitHub - smilingpoplar/CCBlade: a blade effect like Fruit Ninja a blade effect like Fruit Ninja....
View ArticleBezierTo does not move at constant speed
Using BezierTo on a Sprite I note that it moves at different speeds at different places on the curve. Any solutions for this? I have a path made up of curves, for each curve I calculate the length and...
View ArticleNeed to save a sprite to specified area rather than bundle
When I use RenderTexture to save a sprite, it saves it to the bundle area on the Mac (seems to work fine on Windows). Is there an alternate way to save the sprite out, perhaps converting it to CCImage...
View ArticleLoad entire level at once or by fragments
hello, this is a theoretical question. Say you have a game like super mario. Back then, what they did it in old consoles, or at least for that specific game in the NES, they loaded the level on the...
View ArticleUse cocos name in my fork
Hi, I want have a fork of cocos with a new name that have cocos in it (ex: cocosdx). There is any legal problem? Thanks. 2 posts - 2 participants Read full topic
View ArticleBeginner guide to desktop controller input?
hello, I have search a lot in google and this forum about how to input a gamepad controller, but didn’t really succed to follow how to actually make it work. Some topic are very old, and some other...
View ArticleHow to resolve this question?
When the size of the game scene exceeds the size of the screen, when the protagonist moves to the right, the scene will also move to the right. Suppose a button is added in the lower right corner of...
View ArticleUserDefault on Mac
I started using UserDefault to save my settings, and they work great on Windows, and they seem to work great on my own Mac, but multiple people who bought the game are having problems that the Windows...
View ArticleUnresolved external symbol
It shows the errors: 1>first.obj : error LNK2001: unresolved external symbol “public: virtual void __thiscall first::onKeyPressed(enum cocos2d::EventKeyboard::KeyCode,class cocos2d::Event *)”...
View Article[Multi Resolution] How do I support the resolution of 6.1 inch iPhone devices?
I am currently updating cocos2d-x version 3.8.1 to 3.17.2. My existing game is in landscape mode. The design resolution size of my game project is 480 x 320. In the meantime, many iPhone devices have...
View ArticleXcode 14 Cocos2d-x Problems
After updating Xcode to version 14, I get the following problem when compiling Any help would be appreciated 1 post - 1 participant Read full topic
View ArticleHow to resolve this question
When I use the following code, I can see the “node2” sprite after running the program. node2 = Sprite::create("ty.png"); node2->setPosition(Vec2(700, 600)); this->addChild(node2,5); auto...
View ArticleIssue with compiling a project
Hi Friends, I am getting back to cocos2d-x after almost half a decade. And having issue trying to compile a new JS project. I have a fresh Ubuntu 18.04 box setup with Java 1.8, Cmake, and all other...
View ArticlePhysics3D Test in cpp-tests fails if boss.c3b is replaced by boss.obj
cocos2d-x version: v4 devices test on: iPhone SE3 simulator iOS 15.4 developing environments NDK version: NIL Xcode version: 13.3.1 VS version: browser type and version: Steps to Reproduce: In bool...
View ArticleIs it possible to perform a sequence frame animation without adding every frame?
I only know that the sequence frame animation should be executed like this, the code is as follows: SpriteFrameCache::getInstance()->addSpriteFramesWithFile("a.plist"); auto pSprite2 =...
View ArticleiOS in-app purchases
I know that sdkbox is no longer available. So I’m going to implement in-app purchases in a native way. I’m going to start with iOS. I’m not sure how to communicate between the Object-c source code and...
View Article"cocos" command (prompt) not recognized
I just installed cocos2d-x v4, and as soon as I ran the setup.py and installed cmake, I tried making a new project… but the command “cocos” its not recognized. I tried countless different methods to...
View ArticleRead plist files and integrated png images in cocos2d-x
the code as follows: SpriteFrameCache *sfc = SpriteFrameCache::sharedSpriteFrameCache(); sfc->addSpriteFramesWithFile("protagonist_move/aaaa.plist"); auto sprites =...
View ArticleFor statement shows undefined identifier "vec"
the code as follows: auto frameCache = SpriteFrameCache::getInstance(); frameCache->addSpriteFramesWithFile("protagonist_move/aaaa.plist"); auto sprite =...
View ArticleAndroid Performance Tuner
Dear Cocos Community, I am using cocos2d-x v4 now for some time and would like to integrate Android Performance Tuner. Has anyone done this before. I tried to implement the google tuningfork and proto...
View Article