Jump to content


  • Content Count

  • Joined

  • Last visited

About jurbank

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. About the Project I'm working to recreate on of my personal favorite games that closed it's doors a few months back - Void Hunters. The game won't be a 100% clone (I don't want to COPY!) but very similar. Wiki: http://funorb.wikia.com/wiki/Void_Hunters The general concept: The player starts out in a multi-player debris field with a very basic ship chassis. In the debris field, there are a many items to help the player build up their ship (think legos) into an epic machine of mass-destruction! See Void Hunters in action - Video: https://www.youtube.com/watch?v=mAq_FP-h-cI
  2. Did you ever figure this out? I'm getting the same error trying to call to extend Phaser.Physics.Matter.Sprite
  3. I found that you can add a class type: https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Group.html this.bullets = this.scene.add.group({ key: 'bullet', frame: 0, repeat: 5, maxSize: 10, classType: Phaser.Physics.Matter.Image(this.world, 0, 0, null, null, {}), setXY: { x: 32, y: 100, stepX: 40 } }); Still not working though
  4. How do I enable MatterJS based physics in my group bodies? I have the following: this.bullets = this.scene.add.group({ key: 'bullet', frame: 0, repeat: 5, maxSize: 10, setXY: { x: 32, y: 100, stepX: 40 } }); And I'm noticing the body value (at the bottom) is 'null' Based on this tutorial - https://phaser.io/tutorials/making-your-first-phaser-3-game/part8 It uses 'this.physics.add...' but unfortunately, 'this.physics' isn't available. Perhaps because I'm not using Arcade Physics? I also tried 'this.bullets.enableBody = true;'
  5. Thanks iKest! I tried running preUpdate() in the game scene, while passing in this.gun.preUpdate() which clears the graphics (this.graphics.clear()) Not only did it not work, it also significantly dropped the frame rate.
  6. I'm attempting to clear the path within the update function, you can see below: But for some reason, the path won't clear class Gun extends Phaser.Physics.Matter.Image { constructor(config, scene) { super(config.world, config.x, config.y, null, null, config.options); this.scene = scene; this.ship = this.scene.player this.graphics = this.scene.add.graphics(); this.path = new Phaser.Curves.Path(0, 0); } update() { this.graphics.clear() this.graphics.lineStyle(1, 0xcccccc, 1); this.path.lineTo(this.ship.x, this.ship.y); this.path.lineTo(t
  7. Does anyone know how to disable wireframe mode and change body colors while using MatterJS for physics? I can see the following properties in the body's render object, but the color is not updating. It looks like wireframes are set to true by default (line 59) - https://github.com/photonstorm/phaser/blob/8af70d02d1f42a0b56e618840d27b2d1807848cf/src/physics/matter-js/lib/render/Render.js Thanks!
  8. @iKest I'm seeing the bodies in the local world so I'm not sure how to apply your recommendation. Here's my Codepen: Editor view - https://codepen.io/jurbank/project/editor/AmPBBN Render view - https://codepen.io/jurbank/project/live/AmPBBN/
  9. The factory created instance doesn't have the 'world' property, where as the extended Image object of (Phaser.Physics.Matter.Image) does. Perhaps that is the issue?
  10. Thanks! I actually was starting down that route....found this example the other night - http://labs.phaser.io/edit.html?src=src\game objects\container\matter physics body test.js Seems to work fine with creating image objects using the Factory class (this.add.image(...)) However, when I extend a new MatterImage and instantiate it, the x,y context appear agnostic to the parent container context and results in duplicate boxes. Here's a short animation - https://www.useloom.com/share/57dbd41477684e73b87201aec803fbce
  11. Thank you! This has really helped me scaffold my own project.
  12. I'm trying to make a game where the user can drag parts to attach to the Ship. The main challenge I'm running into is attaching the bodies into a single, fixed group so when the player thrusts around with the arrow keys, the other bodies stay in-place. I was looking into composites but I'm not sure how to use them in Phaser, looks pretty straight forward in standard MatterJS. I was also playing with constraints and joints but those seem to attach at one point between both bodies. I also tried adding two constrains, one at each edge but it seemed like the 2nd overwrote the 1st. Any th
  • Create New...