Hi guys,
Got a challenge for y'all. I've been searching the forums but haven't been able to find what I'm looking for. I want an object to move left and right on a one-dimensional plane, controlled by the left and right movement of the mouse. I want the movement itself to be smoothed, with nice acceleration and deceleration, similar to platformer movement. The up and down movement of the mouse would be ignored, since the object can only move left and right.
None of the default movement behaviors cover this. I'm sure it's something dead-simple, but I'm having a hard time wrapping my head around any kind of logic that would be used to implement it.
Can anyone point me in the right direction? I would be very appreciative, and I sincerely apologize if this has been covered already and I just missed it. Thanks!
-Ben