The Hero Character keeps moving while being ible

At the first scene of the game My hero character stands still when he’s idle but at the second scene he keeps walking in one spot when he’s idle. What’s going on? Why are the scenes messing with the hero character?