wordyAllen

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. I got it! (well dr.hayes in the salck channel got it) In case anyone want to add dynamic shadows to your images.... you have to redraw the bmd in update() . check the codepen for an example. function update () { offset = moveToXY(game.input.activePointer, sprite.x, sprite.y, 8); bmd.clear(); bmd.shadow('rgba(0, 0, 0, 0.5)', 5, offset.x, offset.y); bmd.copy('shape') }
  2. Hello, I'm trying to render a dynamic bitmap shadow, similar to this example: http://phaser.io/examples/v2/text/dynamic-text-shadow I'm trying to replicate it using the shadow method: http://phaser.io/docs/2.4.1/Phaser.BitmapData.html#shadow Here's what I have (I think the problem is on line 44): http://codepen.io/wordyallen/pen/jWLmGV I guess my question is, how do you update BitmapData ? Any help is appreciated. Thanks!
  3. Hello, I just started with phaser and I think its great. However, I'm trying to set it so my player bumps into an object once and then can pass it. What I currently have is the player bumping the object off screen. update: function() { game.physics.arcade.collide(player, spriteGroup, this.removeCollision, null, this);},removeCollision: function(player, sprite){ game.physics.arcade.overlap(player, sprite);}Any insight, tutorial, or reading material is appreciate.