Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sparkys collision help with slopes...

Author
Message
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 13th Feb 2011 23:10
I've got this part of my code working just fine. It jumps, slides along walls, fire bullets, the works.



But, I need to add in it a part were it will handle slopes on the ground. I've read the tutorials in sparkys collision but I'm at a loss about the slopes. I'd like to add the ability to slide up and down down but not over a certain angle.

I know it's something to do with the SC_CollisionNormal commands. Once I've sussed that out I'm going to work on climbing stairs and then moving platforms.

Warning! May contain Nuts!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 15th Feb 2011 00:57
Ah well... I'll try and figure it out by myself... So far using SC_CollisionNormalY to return a value between 0 and 1. 1 if on flat ground, etc. Big slopes return about 0.60. So I'll play around with it...

Warning! May contain Nuts!

Login to post a reply

Server time is: 2024-11-19 14:46:42
Your offset time is: 2024-11-19 14:46:42