i think i found the problem. in player class
bc SHOOT_MOVE() is in if statment. its only going to add dx to bullet x postion only onces. and if i hit space bar again than it will create a new bullet...
Type: Posts; User: game06
i think i found the problem. in player class
bc SHOOT_MOVE() is in if statment. its only going to add dx to bullet x postion only onces. and if i hit space bar again than it will create a new bullet...
i printed bullet arraylist in player.class
for(int i = 0; i < store_bullets.size(); i++)
{
g.drawImage(shoot_class.getImage(), bullet_class.getX(), bullet_class.getY(), ...
i created a player and i want him to shoot bullet. i understand the logic but i need some help with it. my bullet will just be rect in paint method.
logic:
create bullet class
store in arraylist...