Jump to content

  • Log In with Google      Sign In   
  • Create Account

Viromancer

Member Since 03 Oct 2012
Offline Last Active Oct 03 2012 11:20 PM

Posts I've Made

In Topic: [Java] Draw something more than once?

03 October 2012 - 11:18 PM

There's a couple issues here. If your bullet is its own class, with its own update method, you need to call that method every tick on every bullet, not just when the space bar key is pressed. One way to achieve this would be to maintain an array of all bullets currently created. Then iterate through that array and call each bullet's update method every tick. This also means you should set the velocity as a property of the bullet object.

PARTNERS