Jump to content

LaserLemon

Members
  • Posts

    3
  • Joined

  • Last visited

About LaserLemon

  • Birthday May 16

Profile Information

  • Gender
    Male
  • Location
    South Africa
  • Interests
    Web design, web development, game design, game development, music composition.

Recent Profile Visitors

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

LaserLemon's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Found it here: http://labs.phaser.io/view.html?src=src\physics\matterjs\offset body.js Case closed.
  2. Hi everyone, I'm pretty new to Phaser, only started with it yesterday. I'm building a world with some image assets, in this case, trees that my player object will have to collide with. The code looks like this: var treeLeft = this.matter.add.image(0, (gameHeight - 96), 'tree', null, { isStatic: true }).setOrigin(0, 1); As you can see I'm adding them with Matter.js and then telling them to be static. However, my setOrigin(0, 1) is throwing off the bounding box that Matter.js assigns to the image object. Do you know of any way to make the physics bounding box coincide with my image's visible bounds? I'd like to keep the setOrigin as is because it simplifies the actual map building process for me greatly. Thanks in advance, Emile.
  3. Hey Matt! I'm pretty new here, this is my first post. I came across this while looking into my own physics issue, would this be what you're trying to achieve? https://labs.phaser.io/view.html?src=src\physics\matterjs\add body to tilesprite.js - Emile.
×
×
  • Create New...