Bouncing of walls


I am really struggling with this for few days now. I just need a simple bounce of a wall, but for a platformer mechanic. It turned out to not be that simple to make, I have made a bouncing wall using the trampoline extension but I think I messed up with the events, I don’t know how to fix it thought, bouncing works when the player jumps at the wall and then bounces off in the right angle but i am stuck when the player bounces in the direction of another instance, it keeps glitching, and falls to the ground. Please Help.

Here are the code events :