I'm working on recreating the classic "Elevator Action" arcade game but with a few of my own twists as a "proof of concept" project for a larger game I'm working on.
One thing I'm trying to do is to make it so a box ("Box" object) is "pushed" along depending on which side the Spy ("Spy" object...I'm sensing a trend here) is moving against it.
For the most part, the action works, albeit, a bit jerky. The main problem is that on occasion there seems to be an overlap of the Spy and Box objects and the process comes to a halt (however, I can move away from the Box and things continue as normal).
I want to accomplish two things:
1. the Box appears to move as close to Spy as possible without the "bouncy" effect of the Box moving forward then stopping.
2. prevent the overlap which causes both the Box and Spy from soft-locking in their movements.
Both Spy and Box have the Platform behavior and the Box also has the Solid behavior
Box has an additional object Pinned to it to detect when Spy is close enough to "push" the Box.
I set the movement speed for both the Box and Spy either equal or the Box is 1 pps faster.
This is a screenshot of my current event sheet: