I'm new to Godot and have only been using it for about 4 days.
Currently I have a Game scene, a Player scene and a LaserBeam scene. The LaserBeam fires a laser in the direction of the mouse.
I would like to give the player a constant knockback effect while the laser is being fired (the knockback being in the opposite direction of the mouse), but I'm not sure how to do that. I imagine the code for this would be in GameScene.gd
In the Main Game scene the Player instance is a child of the GameScene root and the LaserBeam instance is a child of the Player.
The code for the Player Scene is:

The code for the LaserBeam scene is:

I am open to any suggestions and changes required in my code.
Any help would be greatly appreciated!