Sprite - How to load the correct image dynamically?
@agriz wrote: Title might be confusing. In resources.js, I have initialized few images.For example, image_0_0: folder + '1.png' and so on. Folder is used to load image2|3|4x...
View Article[Bug] Animation not working in Lua running on iOS devices
@rraallvv wrote: I’m using the following snippet to create an animation in a blank project created with Cocos using the precompiled version of Cocos2d-x v3.10, both for C++ and Lua. C++ // Animation...
View ArticleHow can character vertical align LabelTTF?
@nazrdogan wrote: Hi everyone, I m developing Math Games. and I m using math operator with LabelTTF. But I cannot align operator. But its look like this. FullSizeRender.jpg750x273 26 KB var myLabel33...
View ArticleTableview enhancements
@shauket wrote: Hi everyone, I am not sure about this thing someone did in his games,I want to add a tableview on tap of cell,all other cell will slide down and other tablview will slide from tapped...
View Article[Solved] No Audio on iOS, is this (still) broken in v3.x?
@qwpeoriu wrote: I'm testing out my game on iOS, and while background music plays fine in the browser, I get nothing in the iOS simulator or on a device. I dug around and found this issue on SO from a...
View ArticleWhat's the design choice of making nodes touchable when invisible?
@royitaqi wrote: Thought if a node is invisible, it would be natural to consider it untouchable. If designed this way, then when we make a node invisible, all its children will not respond to touch...
View ArticleHow to repeat an image like a pattern?
@Provatta wrote: Hello everyone! I searched on the Internet before asking but everything I found seems old or not related to what I want to accomplish. I have a tiny png image I want to repeat as a...
View Article[SOLVED] Can't call extern pointers to nodes in other source files?
@matthewlehew wrote: I'm trying to separate some functions to other source files to organize my code, and I'm having trouble defining a pointer to a node and a text object. Here's the relevant code:...
View ArticleTouch - returns incorrect coordinates
@Valera_ wrote: The following code returns an incorrect location void Scene::onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event) { auto pos =...
View ArticleMagic Particles: external 2D/3D particle engine for Cocos2dx
@Odin_KG wrote: Hi! I am developer of Magic Particles: http://www.astralax.com Recently I released Magic Particles v3.34. I corrected my wrapper for Cocos v3.xx too.The info about features of my new...
View ArticleBug: Problem with ProgressTimer created from sprite based on SpriteFrame
@hzl2928963 wrote: Note:I'm coding game on Cocos2d-x v3.2As the title say, I load a .plist spritesheet into TextureCache and create Sprite with SpriteFrame referencing the texture. Then I create...
View ArticleDevelop cocos2d-js with an IDE?
@OscarLeif wrote: I really want to develop in cocos2d-js but the project of cocos IDE is no longer supported, but It's possible to develop in that version of cocos with the help of an IDE ? I remember...
View Articlecocos2d-x build success but install to my phone crash
@sophalgame_dev wrote: Hi there, I'm using cocos2d-x 3.10 for my game but when I start cocos build success and take apk to install into my real device it crash. this is error logcat: (logTag...
View ArticleHow do you implement interfaces with cocos2d's cc.Class?
@eydamson wrote: hi, is it possible to implement oop interfaces in cc.Class? if not is there other alternative?what i am now is just extending and extending... i want some thing just like an...
View ArticleCenter Axis of Action (PageTurn3D)
@StanLeung wrote: Hi All, I would like to ask about gridaction PageTurn3D, is that possible to set it's center axis? The animation always ends at the most left of my screen, even I put my page at the...
View ArticleLots of methods not exists in API reference
@skywalker777 wrote: hi im using visual studio and i see lots of (sprite / node) method if i serch for it in the online api reference dosent exists like setOpacity and setColor am i doing something...
View ArticleswallowTouches in touch/multitouch combined nodes [solved]
@sefiroths wrote: Hi, I have 2 nodes with onEnter methods like: void HelloWorld::onEnter(){ CCNode::onEnter(); auto listener1 = EventListenerTouchOneByOne::create();...
View ArticleIs PhysicsWorld not compatible with Timeline animation?
@Tsing wrote: It's usual to have different rotationZX and rotationZY in an animation. But PhysicsWorld needs Node::getRoration() bug.png1461x645 82.4 KB Posts: 1 Participants: 1 Read full topic
View Article[SOLVED]Problem about the memory management of cocos2dx
@AK2806Kun wrote: Hello!I'm new to cocos2dx, and I've been in trouble with a memory problem. I'm using Xcode to develop my game.And here is a part of my code: bool MainMenuScene::init() { if...
View ArticleDebugging on Device
@Eldar_Husseynov wrote: Hi all, Could you describe what IDE do you use for debugging your Cocos Android app (C++).What standard mode do you prefer for debugging: as Win 32 or on Android Devices.Could...
View Article