Results 1 to 8 of 8

Thread: Following lines

  1. #1

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Is there a way that I can make an image follow a line? I have a picture of car that I want to follow a specific line so that it stays on the track. If it is possible, I would like to be able to give the car certain points to travel to. The track is a rectangle, so I don't need more than 4 points, one for each corner. Any help will be greatly appreciated.

    Thanks
    Midgetsbro
    <removed by admin>

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I recall i made a demo some months ago that demonstrates a dynamic track with cars looping around it, it may be a bit more complicated than a rectangular one, but if youre interested i could give you the source.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Sounds interesting. I think I would like to see that code. I figured out another way to make the car go around the track. I just used a timer in each corner, and when the car got a certain point on the track, it disabled that timer and started another one which made it go 90 degrees from the direction it was going. I would still like to see your code, if it is ok. If you want, you can email it to me: [email protected]

    Thanks
    <removed by admin>

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hey Keda I am interested too!
    You have my email!
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Well, hotmail has been a bit crappy lately, especially when trying to send attachments so i'll put it up on my homepage
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  6. #6

    Thread Starter
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Now this isn't fair. I've vistited your site like a thousand times at school, and now today, I tried it and our stupid firewall blocked it. This really bites. Oh well, I'll wait until I get home.
    <removed by admin>

  7. #7
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Haha just the same here. They added a new firewall to the server of my school district! (I am pi$$ed)
    Sanity is a full time job

    Puh das war harter Stoff!

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Sorry guys, i was busy doing something else, the demo is out there now
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

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



Click Here to Expand Forum to Full Width