WATCH THE TRAILER
CONCEPT
Create a fast fps shooter based on Titanfall 2 character's movement. So i started creating a first person character controler from scratch.
3C was simple to describe, it will be a FPS shooter with the Unreal Engine basic camera. My character had to do parkour movement like Mirror's edge or UT2K4. Avalaible Parkour movement : Running / Wallrun / Mantle / Edge Grab / Sliding / Double Jump. |
The first objectif was to create a total autonomous character controler using blueprint systems in Unreal Engine 4.26. I had to think 'Rationally' in order to understand how i could make my character wallrun.
Making him shoot a Raycast when he touches the wall was the best solution i had. At the same moment I only used the 'Launch character' fonction in order to had friction. My code contains 30 Fonction, so for reasons of readability i will not show everything but only the most important part. BP_Wallrun : https://blueprintue.com/blueprint/e28t9v_5/
basically the code works with a 'LineTraceBychannel' who return the first colision encountered along a given line. I Also check variables, if the character touch the wall / fall and launch it in the direction of the 'line' (raycast) given. BP_WallRunJump : https://blueprintue.com/blueprint/tqcrpxea/
Simply launch the character with a given force (ZOverride simple make jump the character on the Z axis) |
You probably saw the 'gate' fonction. I used it in order to make my character open one gate per time. So you can't do different movement at the same time. Talking about gate, i also added a queue system to make. With the queue system you can trigger the slide in the air and the game will activate it on landing.
BP_QueueSytem : https://blueprintue.com/blueprint/d544syx6/
BP_QueueSytem : https://blueprintue.com/blueprint/d544syx6/
Fun fact : One of my friend just said "What would you erase if you wanted to wall run in real life ?" "Gravity???"