Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Animating 2d graphics

  1. #1
    Junior Member Brownb92's Avatar
    Join Date
    Dec 2012
    Location
    'MURRRICA
    Posts
    5
    My Mood
    Inspired
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Animating 2d graphics

    Hey there! I'm new in java, and I was wanting to know how exactly you'd go about animating 2d graphics in java.
    Example of what I'm looking for:
    I'd like to create a stick figure that faces towards the right when I press my right arrow key, and faces towards the left when I press my arrow key, and I'd like him to have a simple walking animation as he does so.

    This question may be answered already (If so I'm sorry for reposting it!) and it may be beyond my current skill level, but I'm curious so I thought I'd ask. Thanks!

    "There is no man living that can not do more than he thinks he can." - Henry Ford


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Animating 2d graphics

    There are too many tutorials on java graphics to list. Help yourself to your favorite search engine.
    Look into AWT and Swing

  3. The Following User Says Thank You to jps For This Useful Post:

    Brownb92 (December 5th, 2012)

  4. #3
    Junior Member Brownb92's Avatar
    Join Date
    Dec 2012
    Location
    'MURRRICA
    Posts
    5
    My Mood
    Inspired
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Animating 2d graphics

    Thanks, I appreciate it!

    "There is no man living that can not do more than he thinks he can." - Henry Ford

Similar Threads

  1. Slot machine, animating the reels to spin
    By LukeDavison in forum Object Oriented Programming
    Replies: 3
    Last Post: November 27th, 2011, 10:59 AM
  2. how to use graphics g
    By steel55677 in forum AWT / Java Swing
    Replies: 11
    Last Post: November 21st, 2011, 06:35 PM
  3. Graphics class NullPointerException Initialize Graphics Class??
    By bglueck in forum What's Wrong With My Code?
    Replies: 7
    Last Post: May 13th, 2011, 11:13 PM
  4. JButton with 2D Graphics help
    By mystikaljester in forum What's Wrong With My Code?
    Replies: 7
    Last Post: November 13th, 2010, 09:33 PM
  5. Help about Graphics
    By mamech in forum What's Wrong With My Code?
    Replies: 13
    Last Post: September 9th, 2010, 03:20 PM

Tags for this Thread