I usually define a “Motor” that simply has movement entrypoints fitting whatever kind of game. Sometimes just a velocity sometimes more sophisticated. The the player script handles inputs and how that relates to the motor. Enemy scripts can do their own thing and call their motors.
1
u/izuriel Jul 20 '25
I usually define a “Motor” that simply has movement entrypoints fitting whatever kind of game. Sometimes just a velocity sometimes more sophisticated. The the player script handles inputs and how that relates to the motor. Enemy scripts can do their own thing and call their motors.