Results 1 to 3 of 3

Thread: Movement

  1. #1
    Join Date
    Oct 2012
    Location
    San Saba Tx.
    Posts
    8
    Rep Power
    0

    Default Movement

    I'm making a little game like bloons where the bloons follow a path so i need to move a component around but slowly along between two points i can make it move but not slowly is there a way to make it do so?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,773
    Blog Entries
    7
    Rep Power
    21

    Default Re: Movement

    Read the API documentation of one of the available Timer classes. They call a Runnable or TimerTask or whatever on regular intervals. Your TimerTask (or whatever) should update the position of a bloon and repaint() the component that is supposed to draw the bloon.

    kind regards,

    Jos

    ps. bloon? I only know of a buh-loon ...
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Join Date
    Oct 2012
    Location
    San Saba Tx.
    Posts
    8
    Rep Power
    0

    Default Re: Movement

    Its a kids game. I figured id make a simpler version or make a game similar just to improve my knowledge in java. Its actually Bloons Tower Defense we always call it bloons in my school.

Similar Threads

  1. movement during scaling
    By PRW56 in forum New To Java
    Replies: 4
    Last Post: 07-12-2012, 02:10 PM
  2. Player Movement Help!
    By Mitch in forum Java Gaming
    Replies: 1
    Last Post: 04-13-2012, 06:51 AM
  3. Replies: 2
    Last Post: 03-10-2012, 05:26 AM
  4. Movement
    By elamre in forum Java Applets
    Replies: 24
    Last Post: 01-18-2012, 09:44 PM
  5. Movement of balls
    By BlitzA in forum New To Java
    Replies: 8
    Last Post: 01-09-2008, 04:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •