Use the joystick to move around the hat block. You can backpack the sprite and use it in your own games.
I followed the tutorial from @griffpatch