Search:

Type: Posts; User: game06

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    4,685

    Re: how to create bullets in java

    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...
  2. Replies
    4
    Views
    4,685

    Re: how to create bullets in java

    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(), ...
  3. Replies
    4
    Views
    4,685

    how to create bullets in java

    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...
Results 1 to 3 of 3