I have created a simple side scroller blueprint project.
The scene includes a simple platform, the SideScrollerCharacter and an a Box static mesh. (both of them are standing on the platform)
I am trying to figure out the steps to enable the character to pull the box backwards with him as he moves back.
This is the behavior I am trying to achieve:
- The character will be able to start pulling the box after pressing the ‘E’ key when close enough to the box.
- The box will move together with the character as he moves backward (after pressing the ‘E’ key).
- The box will follow the floor topography, meaning that it needs to remain on the floor. (when being pulled)
- The character will release the box by pressing the ‘Q’ key. In this case, the box would respond well to slopes (meaning slide along the floor based on the physics)