Hello, I'm trying to create a kinematic body only by node-less script, but can't figure out how to override _physics_process.

My mind process:
I have a script that extends Object
extends Object
and then I have a function that creates a new Kinematic body when called

func createBody():
  player=KinematicBody2D.new()

and lastly a getter that returns the Kinematic Body

func getBody():
 return player

But where and how should I add the _physics_process for this KinematicBody, is it even possible?

    You can attach scripts directly, but I wouldn't recommend it. The better way is to make a named class extending KinematicBody2D and instantiate it the same way you do above. Then you can add it to the scene tree.

    I did a whole game with only one scene, just because I like code better than scenes. 🙂