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

Game crashing in CocosDenshion.m file

Hello, My game is crashing coz of CocosDenshion.m file. File: github/pocketgems/cocos2d-iphone/blob/pgcommon2x/CocosDenshion/CocosDenshion/CocosDenshion.m When I am returning from the below function,...

View Article


Trouble lining up labels of different scales

I’ve tried various scaling, anchorpoints, etc, but can’t seem to get this to work. I’m laying down a label with a scale of 1, and I want to add another label using the same font, but a scale of 0.6...

View Article


[Cocos Creator 2.4] need help in loading multi image from S3

Hi, currently I working on a project which need to load .png .atlas and .json from AWS S3 to change spine animation on runtime. The spine animation with only 1 png will work but with multi png can’t...

View Article

3D particle not showing up in Cocos 3.8.1

Hello folks, I am creating a casual mobile game in which user have to join some boxes. and when certain conditions are met, then those boxes will blast. For showing the blast effect, I am using 3D...

View Article

How to know the c++ in Android Studio?

Hi, I am using Cocos2dx v4. I have create a project for Android and I wonder how to check the c++ version. I am trying to implement callbacks using C++11 Thanks in advance. 2 posts - 2 participants...

View Article


Image may be NSFW.
Clik here to view.

Init Image by data in Cocs2d-x 2.2.6 to 3.17

My boss asked me to update his 2.2.6 project to 3.17 version Im getting troubel in here! He have function init image by void* data,int datalen,int and type image (PNG or JPG) im try to clone it in...

View Article

Crash: cocos2d::ObjectFactory::TInfo::TInfo(std::__1::basic_string const&,...

Hey, I’m experiencing the following crash on iOS systems below 12.5. The crash occurs immediately upon launching the application. When I build the application on a device running iOS 12.5 (with Xcode...

View Article

Build android fail with cocos2d-x js in the newest android studio?

I am trying to build cocos2d-x js version 3.17.2 with the newest Android Studio. I have installed all of the compatible versions of ndk (19.2) and cmake (3.6). So far I can compile by using Android...

View Article


What causes the error `No file found at scrip/jsb_prepare.js`

I am trying to run cocos2d-x js version 3.17.2 on android and caught this error cocos2d: fullPathForFilename: No file found at script/jsb_prepare.js. What is the reason for this error? 1 post - 1...

View Article


Race game on Cocos and Typescript

Hi Comomunity. I want to create Race game on Typescript. Please send some tutorial for this or some similar articles. I want to create some good detailed design of the car. 1 post - 1 participant Read...

View Article

Set default material for Mesh

I am using cocos2d-x v3.17.x js. After converting the Maya exported model to .c3t I can see that some Mesh are using default material. However, these textures do not exist. How can I set them to use...

View Article

Image may be NSFW.
Clik here to view.

Cocos2dx v3.15 Android API 34 issue

Hi there, Has anyone tried to compile cocos2dx v3.15/17 with Android API 34? I can’t get it done Here is what I get: What went wrong: Execution failed for task ‘:app:processReleaseResources’. AAPT2...

View Article

Create custom shader for skin

How can I create a shader with uniform u_matrixPalette for skinning object? 1 post - 1 participant Read full topic

View Article


Cannot compile shader for android

I am following this tutorial Shaders and Materials · GitBook to create a custom material. However, I got the error of Unused argument in constructor whose reason comes from the uniform values be...

View Article

How can I use websocket to connect?

I am using cocos2d-x v3.17.2. I create a Network class to connect with my local server through websocket as below. When I build an android app, I keep getting the error of connection failed. var...

View Article


Going From Unity to Cocos complete newb - need help

Hi I’ve had a quick scout and I can’t find anything quite what I’m looking for but if there are forum posts already like what I’m about to ask then I do apologize and please point me in that...

View Article

Is it possible? Knowing C++ only the basics, write games in Cocos?

Is it possible? Knowing C++ only the basics, write games in cocos. Hi all! Maybe explore opentk or other libraries for creating games in Cocos? 2 posts - 2 participants Read full topic

View Article


Image may be NSFW.
Clik here to view.

Build wrong about com.enhance.gameservice

I was first to build cocos2dx-4.0 project,the below picture is the question It tells me package com.enhance.gameservice doesn’t exist,I try to find answers on website,but I only find several answer...

View Article

Card curl effect in cocos2d js

I want to impliment card curl effect using cocos2djs 3.8 version. I have to use only cocos2djs to impliment not allowed to use third party plugins. I want effect like this :...

View Article

Image may be NSFW.
Clik here to view.

Physics and sprite animation dont works

Hi, I have a small problem when i use Physics with animation. I made a small project to show: GitHub GitHub - paulocoutinhox/axmol-bomb-test Contribute to paulocoutinhox/axmol-bomb-test development by...

View Article
Browsing all 2748 articles
Browse latest View live


Latest Images