Kind of hard to explain, but basically I want to make it so that enemies in my game use the "Platform Movement Object" to move around and collide with walls. The problem is, I don't know how to arrange the code to work properly. I tried making it so that each enemy had a flag that, when off, would create a platform movement object and then set an alterable value on the enemy to match the fixed value of the Platform Movement Object. I don't know how well that would work, but it seemed it wasn't doing anything right. I suspect the problem is in the coding, as I am having a hard time figuring out how to set up the conditions so it knows which enemy goes with which Platform Movement Object and whatnot. I was hoping I could do something like
Alterable Value A of "Enemy" == Fixed value of "Platform movement object"
(Platform Movement Object) Test for obstacle overlap
(Enemy) Is overlapping a backdrop
>(Platform Movement Object) Selected Object Overlaps an Obstacle
But the enemies just fell through the platforms, very inconsistently too, like something was colliding at some point?
How can I more consistently link these? This would help out with stuff like vision cones as well.