Hello everyone!! In my case I don’t wanted my space ship to be cutoff by the screen so this piece of code worked for me. I sticked to the second method since it gave me more freedom and easy reading.
I am separating the code into functions and calling those in the _physics_process.
Ok!! Let’s continue!!!