CheatingPenguin
Member
Hello!
I'm trying to get my player object to be able to walk up and around slopes similar to how Sonic is able to run through loops.
My player can currently walk left and right.
I've tried implementing 360° Slope Movements onto my player object for the past 4 days straight but to no avail. I'm aware that sin and cos are necessary, but I'm not sure how to use them, or why exactly I have to use them. I also know I need to calculate the angle of the floor relative to my player's rotation, but again I believe that requires sin and cos (which I'm not sure exactly how to apply).
I've tried the following:
If anybody has any ideas (even if it's not an entire solution) please share it. I'm really at a loss here and as far as I know, this is the hardest obstacle my game is facing.
Thanks
I'm trying to get my player object to be able to walk up and around slopes similar to how Sonic is able to run through loops.
My player can currently walk left and right.
I've tried implementing 360° Slope Movements onto my player object for the past 4 days straight but to no avail. I'm aware that sin and cos are necessary, but I'm not sure how to use them, or why exactly I have to use them. I also know I need to calculate the angle of the floor relative to my player's rotation, but again I believe that requires sin and cos (which I'm not sure exactly how to apply).
I've tried the following:
- The Sonic Retro Sonic Physics Analysis
- YouTube Tutorials
- Game Maker Cookbook Sonic Game Engine
- Digging through several Sonic Engines (to see how they accomplish the above)
If anybody has any ideas (even if it's not an entire solution) please share it. I'm really at a loss here and as far as I know, this is the hardest obstacle my game is facing.
Thanks