Jump to content

Animate BitmapData


veryafe
 Share

Recommended Posts

Im trying to generate different characters by combining multiple sprite sheets.

One combination might be: green body + pink shirt + hat.

 

I have created a BitmapData object with my combined sprites but have not found a way to animate it.

 

Is there any support for this today? Or do I approach this the wrong way?

 

 

Link to comment
Share on other sites

You should use a Group for this really. A BitmapData is like a blank canvas you can perform drawing operations on, it's not for animation.

 

Please, help me make it work:

 

var btmDrw = game.add.bitmapData(100, 100);
    btmDrw.beginFill(0xFF0000);
    btmDrw.beginPath();
    btmDrw.moveTo(200, 200);
    btmDrw.lineTo(300, 300);
    btmDrw.stroke();
 
why line is not appears?
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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