andrei.nicolae

Members
  • Content Count

    15
  • Joined

  • Last visited

  1. I fixed it, if anyone else has this issue I solved it by using the parent plugin, with the following settings for the parent #phaser-app { max-height: 100%; position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
  2. Hi, I've used this plugin and helped me a lot for the web version of my game. Now I'm using it for facebook instant games version of my game, I thought it worked great as I only tested it on iphones, 5se and 6s, but now I'm testing it on a Galaxy Note 4 and it looks really zoomed in, the issue is both on width and height. Do you have any solution for this? Thank you in advance. PS. iPhone and Desktop fb versions look great.
  3. Thanks for the solution. Works like a charm, for future users that have this problem, add a callback inside the button touch/click event.
  4. 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.
  5. @samme Sorry, can you point me in the right direction? I'm asking you because you seem to know what you're talking about, thanks.
  6. I'm not trying to zoom in the canvas, I'm trying to zoom the website touching the canvas, and pan the website touching the canvas.
  7. Thanks for the reply, this works but does not fit my needs. My game is a hidden object, it opens ok on mobile browser, it fills right the browser. The game itself needs to be zoomable, so want we want to achieve from a user perspective is the next thing: users touches the canvas with two fingers and expands, then the whole canvas zooms, like any other website, the user will use a finger to pan the image so he can find objects easily in the game. In the current state the user can pinch and pan outside the canvas, the canvas scales but it's not responsive itself to pan and zoom. I attached a video of how the game works now and showing how it doesn't work when I try touching the canvas. Thank you! video-1535551724.mp4
  8. Hi guys, I'm new to this and I have an issue in my current working project(it's first in phaser). I want to know how can I zoom in the game when it's opened in a mobile browser? The game is too small and I want to zoom and slide the whole canvas in the browser window. I can do this from outside the canvas but I cannot drag then from the canvas itself. Please help! Thank you.
  9. Hi, I want to use a font that I have installed locally on my computer in the game. Can someone help? Thank you.
  10. Hi guys, How can you change the anchor of a sprite inside a group? For a sprite outside the group I use this.add.sprite(100,100, 'sprite').setOrigin(0,0); I tried the next code but It didn't work leprosy = this.add.group([{ key: '001_leprosy', setXY: { x: 444, y: 115 }, setOrigin : {x:0, y:0} } ]); Any ideas? Thanks.
  11. Hi guys, I have a tiny sprite placed in a png sized like the game, with alpha, so I only see my tiny sprite surrounded by blank space. It's done this way because I want to place it in (0, 0) and be displayed in it's original position. So, I'm trying to place this sprites and they all go in the same place, center of the screen, like they are trimmed sprites. Any solution for this? Thank you.
  12. Thank you for the quick answer. So if I need a popup in multiple scenes I have to create it in each one, right? I was hoping I could use something like a prefab, which I could show in any scene at any given time.
  13. Hi guys, does anyone know how can I bring in front of all of my scene a container(popup) that was created in a previous scene? Is this possbile? Thanks.
  14. Hi guys, I'm trying to make some windows(pop-ups) that I will use in my game, these are for game over, game won or showing different text tips. Will contain text, buttons, sprites. What is the best way to achieve this? If I use a container, how can I show/hide it? This environment is new for me so I'm open to suggestions and ideas. Thank you!
  15. Hi guys, I've worked with unity3d until now, but I have to learn Phaser 3 and make a small hidden object game. It should work on platforms like kongregate, amorgames etc. Also it needs to be integrated with Facebook Instant Games. Having all this in mind, my question is: What's the best resolution for portrait mode? I'm thinking that there are devices with aspect ratio 2:1 and I should work on something like that but I need to be sure. Thank you