Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


nickem

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

#4957867 How to code bullets in side scroller

Posted by nickem 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)


PARTNERS