Kristoffer Darj

Members
  • Content Count

    5
  • Joined

  • Last visited

About Kristoffer Darj

  • Rank
    Newbie

Contact Methods

  • Twitter
    kristofferdarj
  1. I'm basically trying to make this gamemechanicexplorer example into a game. http://gamemechanicexplorer.com/#homingmissiles-4 When a missile collide with another sprite (my hero), both the missile and hero is killed but a smoke emitter attached to the missile still keeps emitting smoke. On the other hand, when a missile hits a solid obstacle on thte screen, the missile is also killed in the same fashion and then the emitter stops. Any thought? Missile code: http://pastebin.com/RKBvmSP0 Protagonist code: http://pastebin.com/2sQSN5Ky The game: http://pastebin.com/V0X9QR67
  2. Hello. I'm trying to follow http://gamemechanicexplorer.com/#homingmissiles-1 but my missiles end up pointing in the wrong direction all the time. So I simplified and removed basically everything but the rotation of the bullet. But even with a centered stationary bullet it ends up facing in another direction than where the pointer is. Missile.prototype.update = function() { var targetAngle = this.game.math.angleBetween( this.x, this.y, this.game.input.activePointer.x, this.game.input.activePointer.y ); this.rotation = targetAngle;}; I'm using 2.0.3 Any thoughts on what might be wrong here?
  3. Nice tutorial. I'm eagerly waiting for part 5.