Page 1 of 1

sliding problem

PostPosted: Wed Jul 18, 2007 6:47 pm
by Freddy
I want my actor to slide down a tilted line that I drew from microsoft paint. But since the line is made out of small dots, when I add the gravity to my actor, it stays put on a couple of smaller line segments. Is there any way I can make my actor move smoothley down?

PostPosted: Wed Jul 18, 2007 6:59 pm
by Caaz Games
You could use
Code: Select all
y = y +5
x = x + 7
or
Code: Select all
yvelocity = yvelocity += 5;
xvelocity = xvelocity += 7
or something.

PostPosted: Wed Jul 18, 2007 7:50 pm
by Freddy
True, but I was hoping there was another way. Thanks anyway. :)

PostPosted: Wed Jul 18, 2007 11:19 pm
by Game A Gogo
if I understand correctly, you are using a dotted line, and want him to slide normally on it.
Try getting a software like IconLover (Not for free, but there is a trial, site: http://www.aha-soft.com )
and open your desired file, convert it to 32-Bit, and fill the empty lines whit like 99% transparent color, it should be enough to be barely visible.