As you can tell from the title I am working on a platform game. I'm getting pretty close to making all of the movements I planned for the game. I am having trouble with one such movement.
I would like to have my player slide down surfaces that are bigger than a 45 degree angle. What would be the best way of accomplishing this goal? Thanks in advance for any help.
Hello guys! I'm New! -- I've been new for a year now...haha
Okay so my first attempt didn't work out like I wanted it to. I tried making 2 detectors that if the player was standing on the ground and one of the detectors was overlapping an obstacle then to make the player slide. but that did work at all.
Hello guys! I'm New! -- I've been new for a year now...haha
If you have your gravity built correctly, you could just have the X position set in a similar fashion as the Y, depending on the slope angle. I suppose you could just have an object (invisible, of course) overlap the slope, and program the movement for each angle. I dunno, it's what popped in my head. I'll think about it for a bit.
So I did it I made 3 detectors one to detect the slope, and two detects to find out whether the player should be sliding left or right. I originally found that if I used one detector (the slope one) it would trigger a slide if he just walked far enough towards the edge of a flat surface.
Hello guys! I'm New! -- I've been new for a year now...haha