Results 1 to 4 of 4
  1. #1
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default j2me bubble game

    how can i make a path with parabola equation to display bubble.Actually i have to maintain X axis of different size of bubble. As i shown in figure.(highlight with red color ).
    Attached Thumbnails Attached Thumbnails j2me bubble game-parab-direc.gif  

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,889
    Rep Power
    8

    Default

    Not really sure what your actual question is, as you haven't given any context. You might want to provide an SSCCE that demonstrates where you're stuck.

    If you're asking how you can give something a path, one way to do it is to write an equation that gives the location based on time. Then when you update the position, just pass the elapsed time into the equation and set the location accordingly.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default

    means i want to make a path than bubble will continuously follow this path.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default

    Well, Kevin already answered that. I guess your problem is solved, as I don't see an SSCCE.

    db

Similar Threads

  1. BuBBle Sorting
    By Bgreen7887 in forum New To Java
    Replies: 6
    Last Post: 03-28-2011, 10:03 PM
  2. Bubble sort
    By pineapple in forum New To Java
    Replies: 3
    Last Post: 04-25-2009, 12:45 AM
  3. Best way to do a pop-up 'info bubble'
    By lightstream in forum AWT / Swing
    Replies: 2
    Last Post: 01-27-2009, 07:39 AM
  4. Bubble Sort in Java
    By Java Tip in forum Algorithms
    Replies: 0
    Last Post: 04-15-2008, 07:42 PM
  5. need help with bubble sort
    By lowpro in forum New To Java
    Replies: 3
    Last Post: 12-17-2007, 05:27 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
  •