• Content count

  • Joined

  • Last visited

  1. Custom cursor that persists

    Great, thanks so much!
  2. 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: = "url(assets/images/hand_blue.png), auto"; It fails using both methods, when the input goes over a Phaser button. Any thoughts on this?
  3. Google Fonts once and for all.

    Thank you for this - this is AMAZING!
  4. 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?
  5. Keyboard input + Microsoft Edge

    This is still an issue with Edge 14. Thanks @st0n3vn I put your alternative into place!
  6. 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.
  7. Swipe off a button still registers as a click

    Gotcha, thanks!
  8. Maximum image dimensions on mobile

    "WebGL: INVALID_VALUE: texImage2D: width or height out of range" I'm actually creating a texture atlas with all the frames now, as I learned that spritesheets are not very efficient.
  9. Maximum image dimensions on mobile

    Is there a maximum image width or height for images imported with game.load.image on mobile? I have a sprite sheet that is 3080 pixels wide, and I think it may be the culprit of an error that is happening.
  10. The default setup for buttons in Phaser is that if you click on a button, then move the mouse (or finger on mobile) off the button, when you let go it still registers as a click/tap. Is there a way to have Phaser buttons perform like most buttons - where if you move the input off the button before you release, it does not activate the button?
  11. Align text to the center vertically

    Awesome thank you @samme!
  12. Align text to the center vertically

    How do you vertically align text in the center? I have a high score box that shows 5 scores listed vertically. I render the names using a dynamic font size - so depending on how wide the name is, the font size is bigger or smaller. You can see in the attachment that if the name is very long with a very small font, the name looks like it is vertically aligned to the top. I want the text to be vertically centered. I tried using boundsAlignV in the style of the font, but that didn't change anything: var style = {font: "64px Knewave", fill: "#ffffff", boundsAlignH: "center", boundsAlignV: "center"}; Any other ideas?
  13. Camera Fade and Flash

    Oh, I am on 2.4.6! Thanks for the info!
  14. Camera Fade and Flash

    Hey all! I have 4 game states - Splash, Tutorial, Play and GameOver. Splash and Tutorial load and render quickly, but when I go to Play, it takes a second, and it shows a black screen during that second. I want to have a more elegant state transition. So I started looking around and see lots of suggestions, which all focus on and But I can't seem to use those functions. When I try to use them in create for the any state I get "Typeerror: is not a function(…)", and same for flash. I've also tried What am I doing wrong?
  15. How to reverse Crop Rect across x-axis?

    Ah, I figured it out. I have to scale the crop rect by the inverse scale: cropRect = new Phaser.Rectangle(0, 0, meter.width / scale.x, meter.height / scale.y);