Language

Knockback 2D

So i tried to make a knockback for the player when the player is triggered by the spikes but it just looks stupid and the knockback is too big, here is the script for the knockback, any ideas how to make it look better or something? this is how the knockback looks:VIDEO