greendot

Members
  • Content count

    34
  • Joined

  • Last visited

About greendot

Recent Profile Visitors

491 profile views
  1. greendot

    How to strike an arc and leave a gap?

    Thanks again, @mapacarta, that indeed solved the problem I was having!
  2. greendot

    How to strike an arc and leave a gap?

    Dealing with the same code, any ideas why the circle doesn't fully close on this example: https://codepen.io/weyseal/pen/OoLXpv?editors=0010
  3. greendot

    How to strike an arc and leave a gap?

    You're right, @mapacarta, thank you for this observation! I was going crazy trying to find out why it wasn't working. Hopefully this is a bug in the beta version and not a "breaking" change.
  4. greendot

    How to stop a sound midway?

    var music = this.sound.add('car'); music.play(); music.stop(); Make sure you preload 'car'.
  5. I'm trying to strike an arc but I want to leave a gap in between. Something like this: https://codepen.io/weyseal/pen/MBNZqv?editors=0010 However, when I set a width for the fillStyle, I get this: https://codepen.io/weyseal/pen/ejqbvW?editors=0010 Is there a way to leave a gap in the last example to look like the first one?
  6. greendot

    Scale manager

    For those who are interested too, I found some info on the dev logs:
  7. greendot

    Scale manager

    Hi, is scale manager available for Phaser 3 yet? I read that its development would start on May but not sure if there's anything out yet.
  8. greendot

    Game Objects not being destroyed

    Oh, I'm glad now that the remove function has the option to destroy. I remember seeing an earlier thread where this feature was looking to be incorporated. Thanks for the heads up
  9. greendot

    Game Objects not being destroyed

    I changed group.children.entries.forEach to group.children.each and works fine now. Not sure why it didn't work with children.entries though.
  10. greendot

    Game Objects not being destroyed

    I'm trying to destroy all the game objects of a scene but some of them still remain in the scene but they're not "active" any longer. By active I mean that they are still being shown and there are still movement applied to them, but they don't collide with other objects. They act like they are ghosts game objects. They way I'm clearing all the objects is like this: this.allGroups.forEach((group) => { group.children.entries.forEach((child) => { child.destroy(); }); group.clear(); }); allGroups is an array of GameObject groups of a scene. Am I doing anything wrong?
  11. greendot

    Proper way to scale a game in Phaser 3

    Hi guys, I've been trying to properly scale my game, any luck with a built-in solution from Phaser, or do we have to manually resize and position all the Game Objects ourselves?
  12. greendot

    Virtual gamepad

    Hi everyone, I'm trying to add a virtual gamepad to a Phaser 3 game. I'm following this code: https://github.com/ShawnHymel/phaser-plugin-virtual-gamepad but I'm having a hard time to change it to be Phaser 3 compatible. Is anyone aware of something similar to Phaser 3?
  13. greendot

    How to add a gradient color

    Thank you Kanthi!
  14. greendot

    How to add a gradient color

    Hi, everyone. For Phaser 2, I found this example on how to add a gradient color: https://phaser.io/examples/v2/display/gradient However, I can't find a way to replicate in Phaser 3. Any ideas?
  15. greendot

    SVG in a TileSprite

    Thanks. I checked and the SVG file has width and height defined in its XML. I am trying to have my TileSprite to auto scale depending on the device size so I thought a SVG file would be the proper way to go. Any other recommendation?