PDA

Click to See Complete Forum and Search --> : Following lines


MidgetsBro
Dec 18th, 2000, 08:46 PM
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

kedaman
Dec 18th, 2000, 10:33 PM
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.

MidgetsBro
Dec 19th, 2000, 12:17 AM
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: midgetsbro@netzero.net

Thanks

/\/\isanThr0p
Dec 19th, 2000, 12:29 AM
Hey Keda I am interested too!
You have my email!

kedaman
Dec 19th, 2000, 07:11 AM
Well, hotmail has been a bit crappy lately, especially when trying to send attachments so i'll put it up on my homepage

MidgetsBro
Dec 19th, 2000, 10:17 AM
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.

/\/\isanThr0p
Dec 19th, 2000, 02:47 PM
Haha just the same here. They added a new firewall to the server of my school district! (I am pi$$ed)

kedaman
Dec 19th, 2000, 03:01 PM
Sorry guys, i was busy doing something else, the demo is out there now :)