This is a example of how to have mario start moving and then stop without stopping right away. There is also some other things added like a health bar that drops every time you are hit and a effect changer. Hope this helps!