Discussions

Ask a Question

Integrating third party SDK in cocos creator

Hi All,

About Destructor

I have one question regarding Memory Deallocation of Cocos 2dx hello world code ,,,
And I'm also want to know about Destructor and its Usage in Memory Deallocation of game

UITextField not accepting keyboard input

Hello,
I have been trying to follow your Sonar Learning YouTube videos for Cocos2D JS, particularly the one for UITextField at
https://www.youtube.com/watch?v=LXmDdgcHQDw .
I have been able to get the code to run and display the ccui.TextField node object, but when I click on the text field, I cannot enter any text via my Mac keyboard, as you demonstrated in your YouTube video.
I am using Google Chrome Version 54.0.2840.98 (64-bit) and Cocos2d-JS v3.13
I created a video to demonstrate the problem. The link is below. I have breakpoints in the EventListener function textFieldEvent and the breakpoints hit. The logs to the console are also working. The problem is I cannot type any text into the UITextField after clicking on it. The breakpoints for ccui.TextField.EVENT_INSERT_TEXT: and ccui.TextField.EVENT_DELETE_BACKWARD: are never reached.
Is there some setting I need to have to get the UITextField to work properly after I click on it?

How to get access token when login google play services?

I tried to get access token when user Sonar Google Play game login. How to get it?

What is your name?

Ninh

ANSWERED

Which is the difference between UI Elements, Menu items and Widgets?

I'm going to create a "more or less" own item, and I'm thinking why there are so many options and which are the best.

Label font and color

I put my font in "fonts" folder and this I my code
var menuItemPlay = new cc.MenuItemSprite(
new cc.LabelTTF("Start!","fonts/after_shok.ttf", 24), // normal state image
new cc.Sprite(res.start_s_png), // selected state image
this.onPlay, this);

ANSWERED

Multiline label

Hi!
I want to create multiline text in CocosStudio.
I use label.
For example, my text is:
"Label1 Label2 Label3 Label4 Label4 Label5 Label6 Label7 Label8 Label9 Label10 "

ANSWERED

Set effect volume

Hi, I'm using SimpleAudioEngine class to play sounds. But I can't find a possibility to set volume of SINGLE effect (not all). I'm playing 3 sounds (in loop) at startup (the same length) and I want to mute them to later unmute one or more of them. So they will be synchronized.

LogIn issue

Hi to everybody.
I have Cocos for Mac OSX when i lauch it, and i try to log in i have an error and i can't login...