Search the Community
Showing results for tags 'url'.
-
Hi guys, I've tried multiple solutions found online opening a new tab when a button is hit. buyBtn.on('pointerdown', function (event){ openWindow(myurl); }, this); function openWindow(url) { var result = window.open(url, "_blank") } function openWindow(url) { document.getElementById('newlink').href = url; document.getElementById('newlink').click(); } function openWindow(url) { window.location.assign(url); } This are some of them. All of these solutions work on other browsers, but not on Safari. Does anyone have a working solution for Phaser3? Thank you.
-
hi, I'm try load an image from url for my game.it shows cross origin error. I try like this,(sample code) game.load.baseURL = 'url'; game.load.crossOrigin = 'anonymous'; game.load.image('image', 'assets/images'); If anyone know solution to load image from url please help me. Thanks in advance.
-
What should work fine with "../" doesn't work in my case. If I put my .ogg sound effect in a folder of higher level I can't load it anymore. Trying different sound formats and styles of the relative URL didn't help. How do I solve this? I don't wanna copy the same file into every scene folder directly D:
-
Hi, I am behind a proxy and the following behaviour on different browsers occour. If I call a PG with appended Scene ID like http://www.babylonjs-playground.com/#H82GNB#1 the playground loads and allways shows me the basic scene. New URL is then http://www.babylonjs-playground.com Seems that there is a redirection or something else? What could be the reason for that?
- 11 replies
-
- playground
- https
-
(and 1 more)
Tagged with:
-
https://www.dropbox.com/s/l2l67aququd7she/Patch.babylon?dl=0 or https://ajna4taiga.no-ip.org/BabylonBall/Patch.babylon Hire is playground which doesn't work ok any more http://www.babylonjs-playground.com/#CKEHJ#1 or http://www.babylonjs-playground.com/#CKEHJ#3 How can I load my .babylon file from dropbox or my server? This code has worked. What is goging on now? I see with F12 new problem XMLHttpRequest cannot load https://ajna4taiga.no-ip.org/BabylonBall/Patch.babylon. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.babylonjs-playground.com' is therefore not allowed access. But this things has worked before. How can I make this example to work again? Any alternatives? (I also try like this http://www.babylonjs-playground.com/#YEKUO#1 set data (copy/paste from .babylon file) but here is problem with string of data ! I try \" and \' also but no luck.) I would like to make some playground to ask something and I can't meke playground to load .bayblon file. Greetings Ian
-
I want to add a voice-command recognition library externally on the PG, but it's not working, here's the PG: http://www.babylonjs-playground.com/#1RZMCX#2
-
Hello comrades! I'm working on my new gamemaker game at the moment, and the sponsor is asking me too make the game running fullscreen on mobile chrome browsers. I've tried to use the code from this article http://code.tutsplus.com/tutorials/remove-address-bar--mobile-7509 but seems that it doesn't work in my game, and i have no reason why( Here is the body of my index file: <body> <div class="gm4html5_div_class" id="gm4html5_div_id"> <!-- Create the canvas element the game draws to --> <canvas id="canvas" width="480" height="720"> <p>Your browser doesn't support HTML5 canvas.</p> </canvas> </div><script type="text/javascript">function hideAddressBar(){ if(!window.location.hash) { if(document.height <= window.outerHeight + 10) { document.body.style.height = (window.outerHeight + 50) +'px'; setTimeout( function(){ window.scrollTo(0, 1); }, 50 ); } else { setTimeout( function(){ window.scrollTo(0, 1); }, 0 ); } }} window.addEventListener("load", hideAddressBar );window.addEventListener("orientationchange", hideAddressBar );window.setInterval(function(){hideAddressBar()},10);</script> <!-- Run the game code --> <script type="text/javascript" src="html5game/Farm Jelly Puzzle.js?ZJGAC=254850927"></script> </body>Could you please help me ow can I run the game fullscreen on chrome? As I understood the only function I need here is scrollTo but it doesn't work
-
I'm trying to create a button to link to an external website using Phaser and CocoonJS: function rate(){ if (navigator.userAgent.match( /iPad/i ) || navigator.userAgent.match( /iPhone/i ) || navigator.userAgent.match( /iPod/i )){ window.open("http://www.apple.com"); } else if (navigator.userAgent.match( /Android/i) ){ window.open("http://www.google.com"); }} It works fine in the browser, but when compiled with Cocoon nothing happens! Any help would be greatly appreciated!