So, I'm working on a 2d factory building game inspired by Factorio, Shapez and Satisfactory. I have two families: "Conveyors" and "Objects" (objects being Iron Ore for example).
My code goes like this:
if Objects is overlapping Conveyor
and
Conveyors angle = 0
do
Objects | Simulate Control TileMovement pressing Right
(same code for other conveyor rotations)
Now for a reason I cannot understand, this works perfectly with 1 Object type. As soon as I have 2 Objects on 2 different conveyors that are facing different ways at the same time, both objects move in the same direction!
I've been trying to figure this out for days now and nothing seems to work.
Could someone please explain what I have wrong?