ssshammi Posted July 20, 2018 Share Posted July 20, 2018 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 More sharing options...
ssshammi Posted July 20, 2018 Author Share Posted July 20, 2018 Also it is possible to add graphics as emitter ? game.add.emitter. makeParticles only takes image? i need to make it pick from different color and shapes.may be a custom sprite. Link to comment Share on other sites More sharing options...
samme Posted July 20, 2018 Share Posted July 20, 2018 https://samme.github.io/phaser-examples-mirror/display/spritesheet from graphics.html Link to comment Share on other sites More sharing options...
Recommended Posts