systemx17 Posted May 1, 2015 Share Posted May 1, 2015 I am currently working on a space game (my first game ever with Pixi) and I am sure there is a good chance this has been clarified before. However I am unable to understand some of the replies to other posts without wording this to my specific situation. I have an array that is storing the locations of space "lasers" (Dr Evil reference intended). I want to draw these laser beams as they move across the screen. With rapid fire enabled there might be around 20 lots of beams shooting around the screen at once. What is the best way to go about this.. I have 3 unfinished guess: 1) Create a sprite for each and when they fade off, destroy the sprite somehow 2) Create 40 or so instances of these lasers and only reposition the 20 that are actually currently on the screen 3) Create another array that stores a new sprite for each laser. As the lasers fade off, delete that array entry specifically Any advice/help would be much appreciated. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.