Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 14 Sep 2005
Offline Last Active Nov 20 2012 07:02 PM

#4957867 How to code bullets in side scroller

Posted by on 10 July 2012 - 08:53 PM

It's because bullet1 is declared locally, resulting in it being in the same spot every time. (Well, that's what it looks like anyway)

I would create a list of bullets and add them as they're fired, update them every frame, and destroy them when no longer needed(ie collision)