Actor's code

On start

Set rotation style: left-right

Forever

{Move: 10 pixels

{Next costume

{If on edge, bounce

{Wait 0.2 secs

}