Jump to content

Infinisecond

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Still no luck with bmd.draw(sprite). But I did some digging in the Phaser examples and found this http://examples.phaser.io/_site/view_full.html?d=display&f=render%20texture%20trail.js&t=render%20texture%20trail&phaser_version=v2.0.7& so now my code looks like this texture = game.add.renderTexture(800, 800, 'mousetrail'); block = game.make.sprite(0, 0, 'blocks', 4); texture.renderXY(block, 50, 50, false); sprite = game.add.sprite(0,0,texture);and just for the heck of it I made this var emitter; var texture1; var texture2; var sprite1;
  2. I'm trying to create a bitmapdata with a single frame from a spritesheet and I'm getting nothing I'm using this, bmd = game.add.bitmapData(800, 800); bmd.add(new Phaser.Sprite(game, 50, 50, 'blocks', 3)); sprite = game.add.sprite(0,0,bmd);but its showing nothing. Am doing something wrong? I tried copypixels aswell and still got nothing, I tried adding the sprite in advance, nothing. (I'm useing phaser 2.0.6) Thanks for the help in advance.
×
×
  • Create New...