sliding problem

Non-platform specific questions.

sliding problem

Postby Freddy » Wed Jul 18, 2007 6:47 pm

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?
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Postby Caaz Games » Wed Jul 18, 2007 6:59 pm

You could use
Code: Select all
y = y +5
x = x + 7
or
Code: Select all
yvelocity = yvelocity += 5;
xvelocity = xvelocity += 7
or something.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Freddy » Wed Jul 18, 2007 7:50 pm

True, but I was hoping there was another way. Thanks anyway. :)
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Postby Game A Gogo » Wed Jul 18, 2007 11:19 pm

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.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest