Thread: How would one do this?

Results 1 to 7 of 7
  1. #1 How would one do this? 
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    So wondering how would I make something like this:
    - a path with a dot travelling it. (the speed of the dot is set by setting the time it takes to complete the path)
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  2. #2  
    Community Veteran



    Join Date
    Jan 2008
    Posts
    3,444
    Thanks given
    46
    Thanks received
    973
    Rep Power
    4748
    There multi ways eg

    Define the shape as a polygon then transverse each point @ x amt of time
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Richard1992 View Post
    There multi ways eg

    Define the shape as a polygon then transverse each point @ x amt of time
    any simple ways to get more curved look to it? - with a normal polygon it would reguire tons of points..
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  5. #4  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Reply With Quote  
     

  6. Thankful users:


  7. #5  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    Quote Originally Posted by mige5 View Post
    any simple ways to get more curved look to it? - with a normal polygon it would reguire tons of points..
    Just interpolate between points to create intermediate ones that give a smoother finish?

    What's the function behind this? You'd get a more suited answer if you provided proper requirements.
    Reply With Quote  
     

  8. #6  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Harlan View Post
    Just interpolate between points to create intermediate ones that give a smoother finish?

    What's the function behind this? You'd get a more suited answer if you provided proper requirements.
    Base for something like this:
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  9. #7  
    Registered Member

    Join Date
    Nov 2014
    Posts
    253
    Thanks given
    39
    Thanks received
    146
    Rep Power
    248
    Quote Originally Posted by mige5 View Post
    any simple ways to get more curved look to it? - with a normal polygon it would reguire tons of points..
    Well there are no "real circles"... they are just polygons with many, many sides. In computers you're restricted to pixels and reality you are restricted by Planck's constant.

    Personally I've done very little work with graphics or animations, but you could have a collection of the possibly x/y points that this rink contains, and then just draw your character over x/y points

    In the most simple form it would be something like
    Code:
    sleep = TRACK_TOTAL_TIME/list.size()
    Iterator<Point> iterator = list.iterator()
    
    while(iterator.hasNext()) {
    Point p = iterator.next()
    redrawDudeAt(p)
    Thread.sleep(sleep)
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 2 Things - How would i do this
    By Pixul Athratic in forum Application Development
    Replies: 7
    Last Post: 04-05-2010, 05:57 PM
  2. How would i do this (pathfinding)
    By Senqi in forum Help
    Replies: 6
    Last Post: 03-30-2010, 09:16 AM
  3. how would i do this
    By Lord Stark in forum Help
    Replies: 4
    Last Post: 01-12-2010, 01:02 AM
  4. how would i do this? Simplicity_Official/devo
    By u kno i owns in forum Help
    Replies: 4
    Last Post: 10-28-2009, 01:24 AM
  5. How Would I Do This?
    By Canownueasy` in forum Help
    Replies: 2
    Last Post: 10-16-2009, 05:29 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
  •