Hi,
I wanted to make a sliding slope similar to the ones found in Super Mario 64. Are there existing blueprints/instructions how to make one? If not, where should is start?
Example from Mario 64: Super Mario 64 | Princess's Secret Slide | All Coin Speedrun 0'20"8 - YouTube
redbox
(redbox)
May 9, 2018, 9:02am
2
Use impulse or add movement.
I used actor with simple collision box to define slide volume, and arrow component to set world space vector for slide direction.
When player enters this collision box - I send him an event that he is in sliding area with parameters:
boolean ShouldSlide
vector SlideDirection
In his Tick function ShouldSlide (true) activates simple AddMovementInput function with SlideDirection.
When player is out of collision box - I also send him event that deactivates sliding (ShouldSlide = false).
This approach works well if you disable all other input/controlls during sliding.
In case you need any controls during sliding - try to experiment.
There are few more things here, like change max speed and disable jump.
1 Like