mattbrand

Members
  • Content count

    39
  • Joined

  • Last visited

  1. Physics with touch to move player

    That is exactly it. Thank you again @samme!
  2. Physics with touch to move player

    I made some serious progress with help from @samme. Still not sure what to do in onDragUpdate(), where I catch the case where I want to have the ball be released: if (xDiff > 20.0 || yDiff > 20.0) But I don't know what to do there in order to disable the ball and re-enable it. You can see my attempts, commented out there. Anyone have suggestions for how to "let go" of the ball right there, but still have the ball be enabled for input events and drag?
  3. Physics with touch to move player

    Great, thank you so much!
  4. Physics with touch to move player

    I am making a maze game where the player drags their finger to control a ball moving through a maze. I would love to use Phaser physics to block the ball from moving through the walls. Is there a way to do this with Phaser physics and if so, which physics type would be the best suited for this?
  5. Scaling and input fields

    I read that as well. I am using 24px. But I am scaling, so perhaps when it scales really small on mobile that's when it gets weird.
  6. Scaling and input fields

    In my game I have a form that I built with Orange Games' input plugin (https://github.com/orange-games/phaser-input). The input form working great on computer, but on mobile when you tap into an input field, it zooms in, and becomes impossible to see what you're doing, or go to the next field. I tried using scale prevention with meta tags: <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui"> and: <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=2, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> but my game uses "game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL" to look good on all resolutions. So when I put in the meta tags, it doesn't scale initially, and it is too big on mobile. Is there any way to use a meta tag that allows for initial scaling on mobile, but then freezes the scale in order to prevent zooming on input fields?
  7. Input Events for touch screen

    Never mind, figured it out. Had to do with how I was detecting a tap, because a tap was a special action that deleted a selection. I was doing it badly, and it was messing up the accuracy of inputover detection.
  8. Input Events for touch screen

    A game I made that is playable here: http://gametheorytest.com/gerry/ Has the input events defined as such: this.sprite.events.onInputDown.add(onInputDownTile, this); this.sprite.events.onInputOver.add(onInputOverTile, this); this.sprite.events.onInputOut.add(onInputOutTile, this); On a computer it works great. On a touch device, there seems to be a lack of sensitivity. So sometimes if you tap and move your finger, it doesn't register a touch at all. Sometimes it will register the first touch, but not pick up the onInputOver on the next tile. Any ideas why this would not be accurate on touch?
  9. Custom cursor that persists

    Great, thanks so much!
  10. Custom cursor that persists

    Hey all! I am trying to use a custom cursor in my game. It works at first, but when I roll over a Phaser button (in latest Chrome and latest Safari), it switches back to the regular hand cursor. I have tried setting the cursor through CSS: canvas { cursor: url('./assets/images/hand_blue.png'), auto; } And Phaser: game.canvas.style.cursor = "url(assets/images/hand_blue.png), auto"; It fails using both methods, when the input goes over a Phaser button. Any thoughts on this?
  11. Google Fonts once and for all.

    Thank you for this - this is AMAZING!
  12. Hey all! I add a music track that I want to loop using this code: music = new Phaser.Sound(game, "music", 1, true); It loops correctly everywhere except on IE. Has anyone has this issue? Is the work-around to have an event fire on sound complete?
  13. Keyboard input + Microsoft Edge

    This is still an issue with Edge 14. Thanks @st0n3vn I put your alternative into place!
  14. Maximum image dimensions on mobile

    OK that's great advice, thank you. I have a license for TexturePacker, which works really well. It has a default template for Phaser.
  15. Swipe off a button still registers as a click

    Gotcha, thanks!