Jump to content

ClonkMobile

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. Hi thyagoluciano, i managed it with the Code at the bottom but pay Attention this is not performance optimized Code var Enemy = function(game, x, y, name, frame) { Phaser.Sprite.call(this, game, x, y, name, frame); this.path = []; this.next_positX = 0; this.next_positY = 0;}Enemy.prototype = Object.create(Phaser.Sprite.prototype);Enemy.prototype.constructor = Enemy;Enemy.prototype.update = function(i) { this.moveOnTilemap();}Enemy.prototype.moveOnTilemap = function(i) { if (this.path) { this.x += this.speedX; this.y += this.speedY; if (this.speedX >
  2. really nice work, thank you. As additional feature i would prefer support of the Tiled importer.
  3. Hey guys, is it possible that a p2 physics body collide/overlap with an arcade body ? Thanks Greets
  4. Hi, this will help you: http://www.html5gamedevs.com/topic/4760-best-way-to-recreate-old-physicsoverlap-using-p2/ interesting would be how to overlap an arcade with an p2 body.
×
×
  • Create New...