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

Cc.sys.language returns always "en"

@zavadpe wrote: I face this problem that cc.sys.language returns only “en” for me in cocos creator 2.1.3. The cc.sys.languageCode works well. But returns value in format “languagecode_LOCATION” (eg....

View Article


Image may be NSFW.
Clik here to view.

Multiple orientation support with Version 4

@Rarepixels wrote: Hi all, I’ve developed a cocos2d-x game with multiple orientation support for ios and android with version 3.17 with no problems. When I starting to use cocos2d-x V4, and rotate the...

View Article


Mapping Android pixel densities to Cocos' resource asset sizes

@M4713 wrote: I’m trying to port my Cocos2dx (3.17) game to Android and I’ve been reading this post, where it’s suggested to divide your assets into following groups: UHD, HD, SD, LD with resolution...

View Article

Scale9Sprite from sprite sheet exceeds maximum margin

@Hemchand wrote: Hi, I’m trying to create a scale9sprite, this is the code var rect = new cc.rect(0, 0, 450, 200); var capInsets = new cc.rect(0, 0, 450, 200); this.resultBoard =...

View Article

Is cocos2d-x development stalled ?

@pidhash wrote: passed some days I didn’t see any github updates, so I am wondering if there are plans to stop cocos2d-x development and focus in the closed source code products ? Posts: 3...

View Article


Cocos v4 does still support javascript as a coding language?

@milosg wrote: Hello everybody, i recently test Cocos v4, but I’m not longer able to create a project using : cocos new -l js Testv4 i’ve got this error : Fatal: can’t find any template for language....

View Article

How to disable back to back touches for ccui.button

@TheKeeper wrote: I’m using ccui.button in my cocos2djs game, I actually do not want to press my button back to back. A small time gap between the touched would be nice. Is there any easy way of doing...

View Article

Crash on device language change in android Cocos2dJS

@MohammedHatim wrote: Hi everyone, We are getting crash when user changes the device language & app is in background, We are able to produce this in 2 to 3 devices like Karbon k9 (android version:...

View Article


Image may be NSFW.
Clik here to view.

Chipmunk Physics and character moving

@ooleynich wrote: Hello. I am developing my first platformer game and have problem with character moving logic using Chipmunk. Please help me I have buttons “left” and “right” and I need character...

View Article


Socket.IO - Client not yet connected Error

@metiniki wrote: Hi, I want to authenticate between the server and the client. If it does not perform fast verification, the server closes the connection. The SIODelegate::onConnect function never...

View Article

Error: Reference to non-static member function must be called

@AudiJacker wrote: Hi, I’m using cocos2d-x v4. I got this error on XCode. I tried to build an iOS project. Do you have any solution....

View Article

FrameBufferObject in v4.0

@MuratAlbayrak wrote: In Cocos2dx v4.0 you removed the Class cocos2d::experimental::FrameBuffer. Also Methods like cocos2d::Camera->setFrameBufferObject() are gone. What is or will be the...

View Article

Image may be NSFW.
Clik here to view.

Error: compileProgram: failed to link program

@metiniki wrote: Hello, I get this error every time I run the program. Error: compileProgram: failed to link program I researched about the error. It comes in ProgramGL.cpp and inside...

View Article


Suggestions for platform game with moving holes

@OrionSteel wrote: Hi all, I would like suggestions on how to achieve the following using Chipmunk physics please. I am trying to recreate an old platform game. The game has several “floors” with...

View Article

TextBox Implementation

@luisbvasc wrote: Hi there! I am just learning cocos2d js. I want to implement an Editbox. I used sample text found at EditBox component reference but returns an error; 1 - Edit Box is not defined 2 -...

View Article


How To Create Cross Platform Classes

@TheGameCreator wrote: Hi guys! I’m new on Cocos2d-x. How to create a class into the Classes folder and I want the see on Visual Studio, Android Studio etc. but I cant find a resource. How can I do?...

View Article

[Cocos2d-x] How to place the innerContainer always top of the view of Content...

@joelam500 wrote: Hello. I created a loop for creating multiple Sprites and add them to ScrollView. Therefore, I need to adjust the innerContainerSize according to the number of Sprites created. When...

View Article


Does Cocos2d-x 4.0 support Linux (Ubuntu 18.04+)?

@TommiGustafsson wrote: Some documentation does not mention Linux support. But does cocos2d-x 4.0 support development on and deployment to Linux (Ubuntu 18.04 and later)? Posts: 2 Participants: 2 Read...

View Article

Run Cocos2d-js project from index.jsp file

@bpdubey87 wrote: Hi, as we create new project, by default it is run by index.html file, if I change it to .jsp extension then it gives error at CCLabelTTFCanvasRenderCmd.js:41. It run successfully...

View Article

Any plans to support Windows x64 (64-bit platform)?

@TommiGustafsson wrote: HI! Do you have any plans to support x64 on Windows? Now there is only 32-bit support (win32). Best regards, Tommi Posts: 3 Participants: 2 Read full topic

View Article
Browsing all 2748 articles
Browse latest View live