Cirno Posted November 16, 2015 Share Posted November 16, 2015 Hello everyone. I'm newbie at phaser. I trying make a laser beam. I have read this http://phaser.io/tutorials/coding-tips-007 but i don't want beam like that because when I move line have been broken. Someone help me. Thank you. Link to comment Share on other sites More sharing options...
InsaneHero Posted November 16, 2015 Share Posted November 16, 2015 You say "when I move line have been broken" which I'm guessing refers to the way the beam fragments look when you move up and down on the screen?Sounds like you just need a single sprite with the lazer beam drawn in it. If you want it to 'grow' then you could mess with the width (or scale.x), or use masking.Another alternative is to keep a link between each beam fragment and the ship which fired them, and on every update set the beam y value to match the ship's y value. Cirno 1 Link to comment Share on other sites More sharing options...
Cirno Posted November 16, 2015 Author Share Posted November 16, 2015 Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts