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

Calling java function from AppDeligate crashes the app

@atin_agarwal2 wrote: When I'm trying to call a java function from AppDeligate through JNI before appFinishLaunch, it crashes. But when I call the same function after the app has finished launching it...

View Article


How to ensure that Label is within the sprite bounds?

@sheshmoshen wrote: I created a Label gave it a fontSize and added it to my Sprite in the center.but the problem is I'm going to use the same sprite image and different Labels which means that the...

View Article


What object Pooling methods does coocs2d-x support?

@sheshmoshen wrote: Hello, I have seen many sample projects and all are extremely inefficient being that they create new objects all the time without considering re-use (an object pool). In my game...

View Article

Calling addChild or removeChild continuously

@sheshmoshen wrote: Hello, I have many Sprites that I will constantly remove and add to the layer my questions is if this operation is expensive because otherwise I could just setVisible(false)?...

View Article

Image may be NSFW.
Clik here to view.

Upgrading from 3.8.1 to 3.13?

@Rambazamba wrote: Hi there,now that my new game is almost finished I wonder if it would make sense to upgrade the version of cocos2d-x from 3.8.1 to 3.13. Here are my reasons for upgrading: 1....

View Article


[SOLVED] Android navigation bar

@Minpik wrote: When I launch my app on android, the navigation bar disappers, but before that didn’t, and I don’t know why. Posts: 4 Participants: 2 Read full topic

View Article

Why the layer must be created from my class and not from layer class?

@lionking0 wrote: I am confused about something. I have the following example: mainMenu.h class mainMenu : public Node { public: static Scene* createScene(); virtual bool init(); void...

View Article

Heap error on changing scene after upgrade cocos2d-x from 3.9 to 3.12

@HadiAbbasi wrote: Hi!we have developed our game by cocos2d-x and we upgraded the version of cocos framework from 3.9 to 3.12 yesterday , after resolving so many linking errors, now I can run my game...

View Article


Cpp-tests NavMesh example

@solan wrote: Hello everyone, I tried NavMesh example. It seems me interesting, but I could not found out what is the file geomset.txt?? How can I generate it? The following steps were done:1. compile...

View Article


Scaling layer while following player

@hotcoco wrote: I followed this tutorial for implementing a layer which moves against my player so as to emulate a moving camera: https://www.raywenderlich.com/39113/cocos2d-x-tile-map-tutorial-part-1...

View Article

[SOLVED] cocos2d-x compile error

@Minpik wrote: I don't know what I do but now when I compile my project I have this error: Android NDK:...

View Article

Dragon Bones in Cocos2d-x 3.12+

@Shark13 wrote: Why there is no more auto integration of Cocos2d-x and dragon bones? I've used it before, but with the last version I didn't find how to integrate it, the last version of dragon bones...

View Article

Image may be NSFW.
Clik here to view.

Nodes stretching and appearing in wrong location issue

@JapanDev wrote: Hi there, It seems when I add any nodes to the view, they don't match up in size or location compared to a screenshot being taken with the iPad (same results on Android). Therefore,...

View Article


How to direct cocos console to a different proj.android folder

@Subdevise wrote: Hello, I'm using the cocos console and the proj.android-studio path to build by project using gradle and everything works great (I am not actually using the Android Studio IDE). I...

View Article

Sprite following path

@ishmar wrote: Hi all, I'm curious about how to accomplish something. Guess it might be a general game development question but still, interested in a cocos2d-x approach. I want one (or more) sprites...

View Article


How to reducing Compile time for cocos2d-x 3.12 project?

@HadiAbbasi wrote: HiI am using cocos2d-x 3.12 on Win7 64x and Visual studio 2013...before updating cocos2d-x from 3.9 to 3.12, the compile time was normal, but now that I have upgraded it to 3.12,...

View Article

Event stopPropagation() and isStopped()

@uid4o wrote: Hi there, I'm having two partially overlapping sprites, each having its own eventListenerTouchOneByOne with fixed priority set to PositionY and setSwallowTouch(false) and I need to stop...

View Article


[SOLVED] Screenshot failed

@Minpik wrote: I use 3.13 and I don't know why but when I take a screenshot with the path "/mnt/sdcard/screenshot.png" on android, it's not work but if path is "screenshot.png" it's ok. On 3.11 I...

View Article

Cocos2d-x custom allocaters not found in v3.12

@sheshmoshen wrote: Hi, I want to use cocos2d-x custom allocators for Node* objects and I have a class like this: class CellSprite : public cocos2d::Sprite { public:...

View Article

Image may be NSFW.
Clik here to view.

How to copy contents of Resources to assets flatly?

@noprops wrote: I want copy files in Resources to proj.android-studio/app/assets flatly.So I changed app/build.gradle. task copyAssets(type: Copy) { from fileTree('../../Resources').files into...

View Article
Browsing all 2748 articles
Browse latest View live