Jump to content

CreateMultiple with graphics


ssshammi
 Share

Recommended Posts

HI need to create enemy using graphics shapes with frame can i add graphics which will work like spritesheet? i just need three frames. 

this is the original code 

this.enemies = game.add.group();
        this.enemies.enableBody = true; 
        this.enemies.createMultiple(10, 'enemies');

 

I wish to add frame 1 and frame 2 like drawRect and drawCiricle on the frames or red and blue circle but i need to pass the hex values for the color dynamically .  how do i make it act like a spritesheet? is there a concept of sprite with multiple frames? i could probably add blank spritesheet but can i draw shapes? on each of the frames. please help. This is a phaser example. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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