Psychokiller1888
Thank you!
I'm reading the guide from https://developers.airconsole.com/#!/guides/construct2 and I don't see in the controller.html how to get the message from the screen. Or maybe I don't see it.
Can you please tell me what is the function or code on how to get the message from the screen.
arod17pr Try this code : > // Rewritten version // By @mathias, @cheeaun and @jdalton (function (doc) { var addEvent = 'addEventListener', type = 'gesturestart', qsa = 'querySelectorAll', scales = [1, 1], meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; function fix() { meta.content = 'width=device-width,height=device-height,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; doc.removeEventListener(type, fix, true); } if ((meta = meta[meta.length - 1]) && addEvent in doc) { fix(); scales = [.25, 1.6]; doc[addEvent](type, fix, true); } } (document)); [/code:3ijd6inc] Put it before [code:3ijd6inc]instanceProto.onCreate = function () {[/code:3ijd6inc] If it doesn't work, try adding this code : [code:3ijd6inc] $(this.runtime.canvasdiv).width(window.screen.width/2); $(this.runtime.canvasdiv).height(window.screen.height/2); [/code:3ijd6inc] After [code:3ijd6inc]instanceProto.tick = function () {[/code:3ijd6inc]
arod17pr Try this code :
> // Rewritten version // By @mathias, @cheeaun and @jdalton (function (doc) { var addEvent = 'addEventListener', type = 'gesturestart', qsa = 'querySelectorAll', scales = [1, 1], meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; function fix() { meta.content = 'width=device-width,height=device-height,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; doc.removeEventListener(type, fix, true); } if ((meta = meta[meta.length - 1]) && addEvent in doc) { fix(); scales = [.25, 1.6]; doc[addEvent](type, fix, true); } } (document)); [/code:3ijd6inc] Put it before [code:3ijd6inc]instanceProto.onCreate = function () {[/code:3ijd6inc] If it doesn't work, try adding this code : [code:3ijd6inc] $(this.runtime.canvasdiv).width(window.screen.width/2); $(this.runtime.canvasdiv).height(window.screen.height/2); [/code:3ijd6inc] After [code:3ijd6inc]instanceProto.tick = function () {[/code:3ijd6inc]
X3M
I added them and still does not work. Am I the only one with the problem?
Thank you for the help!
arod17pr Try opening your controller.html and adding this tag after the <head>: <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">[/code:18zlpp2v]
arod17pr Try opening your controller.html and adding this tag after the <head>:
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">[/code:18zlpp2v]
It does not work with IOS. Any ideas on how to solve this problem?
X3M I will test it and let you know how it goes. Thank you!
Any news on the solution for the scaling problem in the devices?
Maybe but when I play other games in airconsole.com there is no high latency and im using my mobile with the wireless connection.
So check this out. I was testing my mobile device using my 40gb wireless connection and I detected high latency. But when I disabled my wireless connection from my mobile device and start using my 4G LTE connection NO High Latency. This is so weird.
OK! I will try it and let you know how it goes.
Not yet. Where can I upload it and test it?
Can it also be the Estimated image memory 1008.5 megabytes (gameplay)? That's the busy part you are talking about?
Develop games in your browser. Powerful, performant & highly capable.
Is there another way to get the Message from the controller? I'm using "On specific Message".
Member since 26 Aug, 2016