Posted By
|
Message
|
Knockturnal Nothing to see here turn back
Registered 11/04/2008
Points 354
|
7th August, 2010 at 21:13:30 -
Why hello, there!
I am sorry if this question is raised a lot around here, but I think I once saw a fastlooped platform engine with slopes.
That's right, fastloops and slopes. Now to the question: How would I go about making this?
Thanks in advance, CC man
Professional vaporware developer
|
Jon Lambert Administrator
Vaporware Master
Registered 19/12/2004
Points 8235
|
7th August, 2010 at 21:53:49 -
I did this just the other day, and by the other day I mean almost a month ago. I did it by having the game check collisions for not only the ground directly underneath the character, but also to the immediate left and right. Then you'd just use ATan2 to find the angle between the points and let the engine know that it is a hill and not a wall.
Sandwich Time!Whoo!
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
|
Knockturnal Nothing to see here turn back
Registered 11/04/2008
Points 354
|
7th August, 2010 at 22:07:07 -
Thanks for your reply, however, it sucks being 15 and not knowing shit about trigonometry.
Ok, so I know some, atleast I know Tan=tangent, how to use it, is beyond me...
Would be useful to learn some, but I think school will cover it this semester.
Professional vaporware developer
|
Jon Lambert Administrator
Vaporware Master
Registered 19/12/2004
Points 8235
|
7th August, 2010 at 22:14:29 -
School doesn't cover ATan2, at least, not at the age of 15. ATan2 is a function that derives the angle of a line. To use it you put ATan2(Y2-Y1,X2-X1) into the Expression Editor (or X2-X1,Y2-Y1, or some other order, but I've never gotten it quite right). That should give you the proper angle plus or minus 90 depending on how you do it. Sketchy once stated it in a way that didn't require you to add or subtract 90 but I can't remember that. Maybe he'll glance upon this soon enough.
Sandwich Time!Whoo!
JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364
|
Knockturnal Nothing to see here turn back
Registered 11/04/2008
Points 354
|
7th August, 2010 at 22:20:43 -
Norwegian school might, and even if not I'm gonna man up to the hardest high school maths you can choose.
Thanks for the advice, I'll look into it when I get there. My engine isn't even started yet, I jsut made this thread to get my answers before I needed them
(Don't know if high school is the correct term, but in the Norwegian system you have one school from 1st through 7th grade, then another one from 8th through 10th, and the last one is 11th-13th year.)
Professional vaporware developer
|
|
|