Game objects from factory share the same script? (they do, just use self)

the enemy scripts are being linked together somehow. why? and how do i fix this?

Every variable that should be unique per enemy (like direction) must be stored in self instead of a local variable at the top of the script, which I assume you did here.

2 Likes