Animation not working in this code

Here’s the updated link to the topic about sprite size vs smooth movements:

Perhaps this very thread could work as the best practice example, where @richard / the @makecode team / someone on this forum enhances/optimizes @jaturn68’s code to work fluently with animations in all directions and for all actions, and rewrite the code to be:

  • both efficient and more readable,
  • with silky smooth movements and animations, and
  • immune to hang-ups and strange behavior resulting from hammering many buttons at the same time?