Android getHeightInPixels() returns wrong value
@MingMingE wrote: Hello! I’ve created a function that finds the height of an ad so it doesn’t cover game content. I used jnihelper to call java functions. public static int getAdViewHeightJni() return...
View ArticleDesynchronisation between frame and physics intervals
@tranthor wrote: Hi, First of all: yes, I know, there are a lot of topic discussing subjects like this. I open a new topic because I’ve tested many variants and nothing solved my problem. I’m...
View ArticleEventListenerCustom was not remove dproperly
@sonlehong wrote: Hi guys, I add a new custom event listener by using the statement code below: EventListenerCustom* eventCus =...
View Article[Android] Compiler don't compile the AppActivity file. Why?
@AudiJacker wrote: There is no class like NoExtistanceClass. Android Studio must tell me that AppActivity has a compile error because there is no such class. Android Studio told me that everything was...
View ArticleBest practice when unable to save game progress
@ebouchard wrote: My games are using file system to save game progress (using FileUtils::getInstance()->getWritablePath(); and FileUtils::getInstance()->writeDataToFile). The savegames uses...
View ArticleCombining Qt (Creator) project with cocos2d-x?
@babaroga wrote: Hi all, I have written small hobby project for myself in cocos2d-x. Now I want to build GUI in Qt to manipulate things written in cocos2d-x (positions of objects and similar). Problem...
View ArticleHow to add virtual currency/goods like coins/gems/cash etc
@jeevs wrote: As the title suggests, how can I add virtual currency/goods like coins/gems/money etc into my game? Have anyone developed this system? It’d be great if you could put it as a tutorial...
View ArticleHow to prevent screen from dimming/turning off
@jeevs wrote: How to prevent screen from dimming/turning off for both iOS and Android ? I found this on stack overflow but how to use it in cocos2dx project’s Android manifestxml ? But I need solution...
View ArticleAndroid DPI and screen width/height still wrong
@gmayer wrote: Hello. There are a few threads about issues getting screen size and DPI on Android. Here is an issue from 2017 that appears to be still open. github.com/cocos2d/cocos2d-x getDpi()...
View Article[Cocos2d-x] How to send object from Scene to Scene via Notification Center or...
@joelam500 wrote: Dear all, I am trying to send the object of SIOClient from one scene to other scene. After implemented the code below, I emit an event at HelloWorld side but I got the bad access...
View ArticleLNK 2019 error when i create a new scene. WIN32
@rdv3736 wrote: Whenever i try to call the create() function included in cocos2d I get a LNK2019 error Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external...
View ArticleCannot visualize special characters as ù and à
@ele_elion wrote: Hi there, I’m using c++, in cocos 3.17 on Mac with Xcode. In the beginning, the game was created on cocos 2.2.6. I use a executable for the texts in my game, called Localized_it, and...
View ArticleCocos2d-x 3.17.1 Editbox SetFocus by Tab key
@MingJiang1988 wrote: Hello, Im developer on cocos2d.x. But not so good expert. I have a problem on cocos2d-x 3.17.1 Lua probject. My problem is below as: I have a project with 2 ccui:Editbox. I want...
View ArticleHow would you properly size sprites?
@rdv3736 wrote: Basically, how do i properly size a sprite with pixel sizes so like (16,16) in pixels or (32,32) instead of having to scale the sprite? Posts: 3 Participants: 3 Read full topic
View Articlefalling multiple fruits sequentialy into an bucket?
@Chandu8893 wrote: i wrote code single ball fall into bucket. but i have a logical error to fall multiple balls into bucket and add score? help me guys whiteeggball: { default: null, type: cc.Node },...
View ArticleChanging a button's image
@xxYxx wrote: Say I have a button which is displaying “1.png”. I now change “1.png” using FileUtils::getInstance()->writeStringToFile() and want the button’s image to change to the new “1.png”....
View ArticleCocos2d-x 4.0 vs Cocos2d-x 3.17.2
@ramizbalayil wrote: Hi, We are beginning the development of a mobile game and was wondering, since 4.0 was out, is it safe to use it for production. Is 3.17.2 more stable than 4.0. We have been using...
View ArticleCannot initialize label, the accents are show as little squares
@ele_elion wrote: Hello there, i’m using cocos 3.17 on Xcode 11. I’m reading the string from a executable called Localized_it but something goes wrong because special character as “ù” are not...
View ArticleCan we use just "cocos2d-x-lite" just like 3.17.2 for regular c++ project
@jeevs wrote: I was curious, can we use just cocos2d-x-lite just like 3.17.2 for regular c++ project (non cocos creator) with Xcode/Android Studio? Or it only works under the hood of cocos creator ?...
View ArticleI desperately need help publishing my CocosJS game on Android/App Store
@dylanwoodbury wrote: Hello! I am no software engineer (I’ve been a mobile game designer for years), but I coded this game Emoji Pop, which I believe has a lot of promise for mobile platforms. Here’s...
View Article