Member variable is corrupted in iOS, but works fine on Android
@Kreacher wrote: In my game, I have a custom class, Hero, that is derived from Node, and has a custom class, StateMachine to manage its state. The StateMachine is derived from cocos2d::Ref, so that I...
View Article[SOLVED] Call custom JS code from java with Cocos2dxJavascriptJavaBridge
@jalfonsosm wrote: Hi, I'm working with Cocos Creator. In order to call a JS function from java, I have tried this: Java code: Cocos2dxJavascriptJavaBridge.evalString("onTwitterLogin(" +...
View Article[GAME] Squaredevil
@redhotgames wrote: Hello Guys i am happy to announce that we just released our new game Squaredevil Google Play StoreWe would really appreciate it, if you give it a try and maybe give a little...
View ArticleIs Label being deprecated?
@i__d__k wrote: I was looking up the Cocos2d-x API reference and when I searched for Label the only results I got were LabelAtlas and LabelEffect with no sign of the Label class itself. Has it been...
View ArticleDoes Tiled (animation tiles) works in cocos2dx?
@Dinamix wrote: Greetings everyone, I would like to ask if Tiled editor animation feature works with cocos2dx? If yes, could someone post an a short example? If no - are there other alternatives...
View ArticleWidget ListView. Add items to bottom instead of top position?
@jrosich wrote: Hi, I'm testing listview and adding Text and buttons. So far so good. However the list is always filled from top to bottom and I would like to add items on the Bottom side instead of...
View ArticleRenderTexture Half Sprite
@Kotaiba wrote: Hi,I want to RenderTexture half the node ,i don't want to use mask . this is my code to render first half of the node i want to get the second half . auto renderTexture =...
View ArticleProblem with labelTTF getContentSize on android
@marcinwal wrote: I have the following code which works fine in the browser but I cannot get contentSize while running it on android device. var elementNameLevel = new cc.LabelTTF("",...
View Article[SDKBOX Play][iOS] Attempt to signin after cancel doesn't do anything
@staras wrote: I have implemented SDKBOX Play version 2.2.4 into our iOS game and am having some problems when the player cancels the initial Game Center sign in dialog and then later I try to invoke...
View ArticleHow to use tab to switch between 2 EditBox
@kaka167 wrote: Hi allHow to change focus to next EditBox when press Tab. Posts: 7 Participants: 4 Read full topic
View Article__String vs std::string? rand() vs RandomHelper? for cocos2d-x v3
@joonthepark wrote: Simple but kinda confusing question.Which one should I stick to for a better performance? __String vs std::string and RandomHelper vs rand() Posts: 1 Participants: 1 Read full topic
View ArticleIs lua development considered a serious option
@Glidos wrote: I ask because so much of the API seems to be missing. I've found work arounds for what I've needed so far, but I'm starting to worry that I could put a lot of work into this only to hit...
View ArticleHow can I this fix? Trying to add AdMob on my cocos android app, using...
@t0dd wrote: -compile: [javac] Compiling 4 source files to C:\project\cocos2dx\RECTSPLAY\proj.andro id\bin\classes [javac] warning: [options] source value 1.5 is obsolete and will be removed in a...
View ArticleLocal Z Order not working
@zanemx wrote: Hey guys I'm making a "don't touch the white tile sort of game". I'm having an issue dealing with local z order of dynamically added sprites to a layer I define in a csd file. Screen...
View ArticlesetDebugDrawMask to DEBUGDRAW_NONE
@RetryAgain wrote: If you set the mask to none (DEBUGDRAW_NONE) and you have not already set the mask your program will terminate.The following code is safe function gameClass:debugNone() local pw =...
View Article[Spine] #include file not found - SOLVED
@lowpolyGregory wrote: Could you please somebody advice me why I can't use Spine in XCODE (cocos2d-x 3.11 and 3.12)?In Default, cpp template project is not possible to #include spine/spine-cocos2dx.h...
View Article[SDKBOX] Admob banner ads not loading on iOS
@iulian wrote: I have an issue loading admob banner ads with the latest cocos2d-x and latest sdkbox. Doesn't matter what values I set for width and height ads are not loading and I am getting this...
View ArticleNo reply from SDK::IAP with no internet
@davidejones88 wrote: Hello there. I'm using SDKBox with IAP. I've noticed that whenever there's no internet on the device, none of the callbacks is triggered. I'm currently implementing these: void...
View ArticleCreate box2d physics based on big tiled map?
@nichlaspro132 wrote: Hi! When you have a tiled map that has tile width and height of 32 px and create a much more simpler map like this: tiledsimple.PNG1498x884 156 KB (Plus there is perfect squared...
View ArticleHow to prevent LabelTTF to be scaled or look blury when upscaling sprite
@Meir_yanovich wrote: I have sprite which i upscale it by 6 , this sprite have LabelTTF as child which get upscaled also can i prevent the font to be upscaled ?it looks like this : Screen Shot...
View Article