xacrox

Members
  • Content Count

    1
  • Joined

  • Last visited

About xacrox

  • Rank
    Newbie

Contact Methods

  • Twitter
    xacrox
  1. Hello! I am fairly new to the phaser framework. So please excuse my noob ignorance if this is an easy question. I know that adding collision on a object such can be easily done with: game.physics.arcade.collide(gameObject1, gameObject2, collisionCallback, processCallback, context); However when you have an object like this ice spike: You would likely need to define a polygon in order for proper collision detection. Which should theorectically be pretty easy considering it's pretty much a triangle. My question is however... when I get into more unique elements say for example this water: And I want to make only the non-transparent parts collide. Is there an easier way? Is there a way to detect non-transparent pixels as opposed to defining each aspect by hand? Hope this makes sense & thanks so much in advance!