Posted by Fox on 2000-01-06
Try to set the sprite on the course with the same slope as the line. Like if the
slope of the line you want him to follow is 1/2, you could start the sprite at the
start of the line and move its x 2 spots and its y one, depending on the slope of
the line.
To figure slope:
(y of start point - y of end point)
(x of start point - x of end point)
To get the fractional portion of this right, you may not be able to do it on the
computer; rather on paper or calculator that can give fractional answers.
This is the simpliest way to accomplish this. Granted there are many more, but
this is the simpliest.
________________________________________________________
Signed: Fox
sfox@xxxxxxxx.xxx
Unbeknowst to most computer users, the "Hertz" is the unit
of measurement for how much faster and smarter the computer
is compared to you.
To signoff send a mail to listserver@xxxx.xx.xx with
"signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home