I'm trying to move a project from Unity to Godot. I've read all the documentation, and have played around with each of the sample scenes. But I still cannot seem to wrap my head around the idiomatic way of scripting in Godot.<br /><br />It feels like I'm forced to dump everything into a single node script, and this bars me from reusing scripts I've already created. That is, say I have the player and a movement script which is generic enough to be used to move enemies. I would like to use it in both cases.<br /><br />I attempted to create scripts that did not live on any nodes, and instance them inside a "PlayerActor.gd" script, e.g. <br />
var movement = preload(&#039;res://Movement.gd&#039;).new()
<br /><br />but I'm not getting any interaction between this "Movement.gd" script and the actual kinematic body in my scene, and I assume it's because the script isn't technically "attached" to the node.<br /><br />So my question is, what is the sanctioned way of coding in Godot? Put everything in a single script and have multiple variations for every application of the script? What about attaching e.g. an inventory, or some kind of stats system to each actor?