- Edited
This is easy but I couldn't find example file anywhere so I made one for reference.
https://github.com/j3du/gd4knockback
Move character with WASD
Box Blue - Static Box will knock you back
Box Red - Moving Box will knock you back
Box Green - Will slide back
Box Yellow - Will bounce back
-Don't let the boxes hit eachother. They have no script to interact with eachother and will throw error.
-If you jump on them they may bounce/slide back forever, and take you along with them.