How to create character movement like 'Subway surfers' or 'Despicable me'?

if you want just to go forward and not turn corners as in endless runner. Remove player rotation.

You will need to make your own animation, or purchase them.

left/right can be with normal movement controls, slightly modified.

For now, remove animation for walking will give you an idea.

Just somewhere to get started.