Search:

Type: Posts; User: mkrage

Search: Search took 0.19 seconds.

  1. Replies
    6
    Views
    1,770

    Re: Why isn't this rectangle moving?

    Yes thank you so much! I now have a moving rectangle! I now understand what you have to do to initialize and how you must use repaint! Thank you so much!
  2. Replies
    6
    Views
    1,770

    Re: Why isn't this rectangle moving?

    Ok first of all thank you for your help. Second its better if I draw on a JPanel an add it on and i am not familiar with key bindings and how they work! If you could tell a brief explanation on how...
  3. Replies
    6
    Views
    1,770

    Re: Why isn't this rectangle moving?

    Ok for number 1 do i put repaint() (redraw() didnt work) inside the keylistener or where do i put it?
    And for number 2 idk what u mean by initialize x. Does that just mean do x=150 in the paint or...
  4. Replies
    6
    Views
    1,770

    Why isn't this rectangle moving?

    Ok so I am trying to make a galaga game and I'm not getting very far at all. I just tried to make a rectangle be the spaceship and have you able to move it left and right, but it won't work. I...
Results 1 to 4 of 4