Search:

Type: Posts; User: Edmacelroy

Search: Search took 0.09 seconds.

  1. [SOLVED] Re: How to get the arrow keys to move rectangle automatically

    Nice, only took me like three days and almost gave up. Finally got it working. Huge Thank you to KevinWorkman for helping me out most of the way and Norm that was it just had to do exactly what you...
  2. [SOLVED] Re: How to get the arrow keys to move rectangle automatically

    Ok so I declared the boolean variables in the RectangleFrame3 class so they can be accessed through that entire class. I tested it and they seem to work somewhat. So I can now get it to automatically...
  3. [SOLVED] Re: How to get the arrow keys to move rectangle automatically

    I'm still not getting it.. Do i just have to declare the boolean variables in both the key listener and timer listener classes. I guess the examples I'm just not following because I'm working with...
  4. [SOLVED] Re: How to get the arrow keys to move rectangle automatically

    Yes exactly, I want the user to press down the key and when release the rectangle should automatically keep moving in the direction of the arrow key the user pressed and released.

    In your Timer...
  5. [SOLVED] Re: How to get the arrow keys to move rectangle automatically

    Ok here is what I did so far. I guess now that I've created the boolean values, I'm confused now how to determine the keys pressed in the timer event.

    With this code my rectangle moves the...
  6. [SOLVED] How to get the arrow keys to move rectangle automatically

    Hi everyone,

    I'm creating a snake game and I need some help getting the rectangle to move automatically when a arrow key is pressed by a user. I got it right now that it will move the amount in...
Results 1 to 6 of 6