Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualL. Spiro

Posted 20 April 2013 - 11:37 PM

That means you are using a single instance of a bullet instead of creating multiple bullets.

 

When bullets are fired, add them to a list of bullets held by an array/list/whatever C# calls them (functional equivalent of std::vector).

Update and render all bullets in that list each frame.  Do remember to remove them when they die.

 

 

L. Spiro


#1L. Spiro

Posted 20 April 2013 - 11:36 PM

That means you are using a single instance of a bullet instead of creating multiple bullets.

 

When bullets are fired, add them to a list of bullets held by an std::vector.

Update and render all bullets in that list each frame.  Do remember to remove them when they die.

 

 

L. Spiro


PARTNERS