Search:

Type: Posts; User: herahoc

Search: Search took 1.15 seconds.

  1. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    I have a problem...when I finished the first game and I want to replay, the program tells me that I didn't hit enough targets
    Can you help me please?


    import javax.swing.JFrame;
    import...
  2. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    I don't know how to do that when a target is clicked disappears, I started to do that but then I do not know how to continue:

    public void mouseMoved(MouseEvent e){
    x = e.getX();
    y =...
  3. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    Ok, i solved the generation of targets, now i should to do that if the target is clicked disappear.
    Is convenient to use the method contains?
  4. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    ok I solved
  5. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    My error is here:

    public void setCentro(Point2D centro) { centro = new Point2D.Double(); }
    public Point2D getCentro() { return centro; }
    but i don't know how to solve... =/
    I also tried...
  6. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Re: Help minigame

    i wrote this but there is 1 error:
    "bersagli.get(bersagli.size()-1).setCentro(CentroRandom());" error cannot find symbol
    symbol: method setCentro(Point2D)
    location: Class Object

    how do I pass...
  7. Thread: Help minigame

    by herahoc
    Replies
    11
    Views
    292

    Help minigame

    Hi all, I'm doing a mini-game, and I need a little help.
    The game is to click on target with the mouse and once clicked should disappear (a kind of shooting), the targets must be randomly generated,...
Results 1 to 7 of 7