Lerp layer camera movement

In my game the pause menu is set to bottom up. But when the pause button is clicked, the game-pause layer comes up a little and stops. When the fuse button is clicked again, another part comes up from the previous stop and stops. How to solve this?

a lerp action is going to need to be run every frame for the effect you want and is currently only running when the mouse is pressed, which I would imagine is not desirable.

I would suggest instead to use a scene tween to move the camera. This will allow you to keep your current code structure and have more freedom in modifying the look of the movement.

it worked. thank you… :slightly_smiling_face: