I've got a setup with a sprite that has 2 animations: 1 faces right, 1 faces left. The sprite has a Custom Movement behavior & is bound to the layout
When the right arrow key is Pressed, it plays the animation "FacingRight" (from the beginning).
When the right arrow key Is Down, the sprite Accelerates 100 at 0 degrees.
When the left arrow key is Pressed, it plays the animation "FacingLeft" (from the beginning).
When the left arrow key Is Down, the sprite Accelerates 100 at 180 degrees.
That's the whole thing: 4 events, 1 sprite, 2 animations, and the behaviors CustomMovement & BoundToLayout.
Anyway, the resulting effect is that the arrow keys slide the Sprite across the layout. There's a kind of stretchiness to it, like it's being pulled by an invisible rubber band. You hit the arrow key, & it slowly builds up speed as it crosses the screen.
I like that.
BUT, when the sprite goes too far to one side (let's say to the right) it kind of sticks to the wall. The longer the sprite is in contact with the layout's boundary, the more time it takes for the Sprite to come back to the other side.
Anybody know how to tighten this up? I'd still like it to feel like it's being pulled by a rubber band, but by a much thicker & stiffer rubber band. The 4 events posted above should suffice, but I can upload a capx if needed. Thanks in advance