Jump to content

Extend Sprite - Without Texture/ With Phaser Atlas


Matthias Elephant
 Share

Recommended Posts

Hi,

i would like to extend the Sprite, but without a texture or a texture loaded from atlas. Someone know how to do this?

MonsterBunny = function (game, x, y) {

    Phaser.Sprite.call(this, game, x, y, 'bunny'); //how to initialize without a texture

};

One trial:  Phaser.Sprite.call(FallBall.game, 50,50, PIXI.Texture.emptyTexture) //didn't work

I use texture atlas, so i can't do it like the example.

http://phaser.io/examples/v2/sprites/extending-sprite-demo-1

Thanks for help.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...