View Full Version : Move along path
pi3rc3
January 22nd, 2005, 03:58 PM
I am making a sidescroller but isntead of having flat ground, the terrain is hilly. my question is how would i make it so the char will only go along a set path and will kind of rotate him when he starts walking up or down a hill? any tutorials that teach somethign similar to this woudl help, thanks.
JoMan
January 22nd, 2005, 04:44 PM
I am making a sidescroller but isntead of having flat ground, the terrain is hilly. my question is how would i make it so the char will only go along a set path and will kind of rotate him when he starts walking up or down a hill? any tutorials that teach somethign similar to this woudl help, thanks.
I've said this to alot of people whom want to know similar things- "Search". I wrote a tutorial on platformer games (actually, I wrote 2), and it explains the whole collision detection stuff.
peace
pi3rc3
January 22nd, 2005, 04:51 PM
well you see the thing is i dont really think collision detection is the way to go, rather i feel it would be better if the char was connected to a path that he just moved along, i just feel that would be alot more effiecent.
mixedtrigeno
January 22nd, 2005, 05:03 PM
lol dude hittest is the way to go i have an fla some where on my computer with the same thign u are asking for but i couldnt find ill see if i find it later on
Voetsjoeba
January 23rd, 2005, 08:38 AM
Here's a class by our beloved senocular which I've used with great success before:
http://proto.layer51.com/d.aspx?f=952
JoMan
January 23rd, 2005, 09:23 AM
Exelent tutorial, Voets :thumb:!
peace
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.