ishmaelmoreno
That will be my goal. Thanks for the advice.
By the way, I just finished my controller. Thanks for the help.
Psychokiller1888
Just to let you know I figure it out.
Instead of this: airConsole.getNickname();
I have to put this: air_console.getNickname();
I don't know why but it works.
Thank you!
I will try this.
No problem. Thank you for all your help.
Do I have to send the Airconsole.Nickname from the screen to the controller?
I tried it but I'm not getting the value for nickname.
var nickname = airConsole.getNickname();
document.getElementById("Nickname").innerHTML = nickname;
Develop games in your browser. Powerful, performant & highly capable.
Thank you! I will try my best.
So I have to put this inside the controller.html?
AirConsole.prototype.getNickname = function(device_id) {
if (device_id === undefined) {
device_id = this.device_id;
}
var device_data = this.devices[device_id];
if (device_data) {
return device_data.nickname || ("Guest " + device_id);
};
Yes! Exactly that!
Thank you! It works perfectly.
Now, i'm wondering how could I get the Device Nickname?
Thanks!
It works! Thanks!
But I'm trying to add a different background color for each controller and for that it does not work.
Is there a way to get the device_id?
How can I do that?
Where can I find the very simple and quick Javascript beginner guide?
Do I have to put the "if" condition inside the handshake.data?
How do I get the values from the browser?
Sorry I'm in a rush, just a few days left for submitting the game.
Thank You!
I'm trying to change the button image background. I was trying with this code but is not working.
Is this the right way to do it?
https://drive.google.com/file/d/0B2tJAThC4ueZeEl0aEY5OUQyT1E/view?usp=sharing
Member since 26 Aug, 2016