How to create a slippery slope?
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: https://www.youtube.com/watch?v=R5eyPx_TFyo
(comments are locked)
|
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: 1. boolean ShouldSlide 2. 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.
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here