Hi guys...
I have made html5 game.
in this game I put some pot in some window, when window close a pot fall
and when the pot touch floor the pot animation to pot broken in 0.5 second
after that the pot invisible and reset pot position to first position.
i have trouble with pot broken animation
I can not stop and hold Y position of the pot when the pot collision with the floor
and the Y position of pot not truly in first position when reset after collision.
please help me this is the code