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!
Type: Posts; User: mkrage
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!
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...
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...
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...