Collect the Clovers

Try this tutorial!

{Introduction }

Create a garden game to collect 4-leaf clovers and avoid the bees!

Collect the Clovers game in action

{Step 1 - Set the Background image}

From the ||scene:Scene|| Toolbox drawer, drag a ||scene:set background image|| block onto the Workspace and drop into the ||loops:on start|| block. In the ||scene:set background image|| block, click on the grey oval to open the image editor and draw a garden scene with flowers, trees, and anything else you want in the background of your game.

scene.setBackgroundImage(img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
`)

{Step 2 - Create the Player Character}

From the ||sprites:Sprites|| Toolbox drawer, drag a ||variables:set mySprite|| block and drop it after the ||scene:set background image|| block. Click on the grey oval to open the sprite image editor and draw an image for your player, or just select one from the Gallery.

scene.setBackgroundImage(img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
`)
let mySprite = sprites.create(img`
. . . . . f f 4 4 f f . . . . .
. . . . f 5 4 5 5 4 5 f . . . .
. . . f e 4 5 5 5 5 4 e f . . .
. . f b 3 e 4 4 4 4 e 3 b f . .
. . f 3 3 3 3 3 3 3 3 3 3 f . .
. f 3 3 e b 3 e e 3 b e 3 3 f .
. f 3 3 f f e e e e f f 3 3 f .
. f b b f b f e e f b f b b f .
. f b b e 1 f 4 4 f 1 e b b f .
f f b b f 4 4 4 4 4 4 f b b f f
f b b f f f e e e e f f f b b f
. f e e f b d d d d b f e e f .
. . e 4 c d d d d d d c 4 e . .
. . e f b d b d b d b b f e . .
. . . f f 1 d 1 d 1 d f f . . .
. . . . . f f b b f f . . . . .
`, SpriteKind.Player)

{Step 3 - Move the Player Character}

Let’s add code to be able to move our player around the screen. From the ||contorller:Controller|| Toolbox drawer, drag a ||controller:move mySprite|| block and drop after the ||variables:set mySprite|| block.

scene.setBackgroundImage(img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
`)
let mySprite = sprites.create(img`
. . . . . f f 4 4 f f . . . . .
. . . . f 5 4 5 5 4 5 f . . . .
. . . f e 4 5 5 5 5 4 e f . . .
. . f b 3 e 4 4 4 4 e 3 b f . .
. . f 3 3 3 3 3 3 3 3 3 3 f . .
. f 3 3 e b 3 e e 3 b e 3 3 f .
. f 3 3 f f e e e e f f 3 3 f .
. f b b f b f e e f b f b b f .
. f b b e 1 f 4 4 f 1 e b b f .
f f b b f 4 4 4 4 4 4 f b b f f
f b b f f f e e e e f f f b b f
. f e e f b d d d d b f e e f .
. . e 4 c d d d d d d c 4 e . .
. . e f b d b d b d b b f e . .
. . . f f 1 d 1 d 1 d f f . . .
. . . . . f f b b f f . . . . .
`, SpriteKind.Player)
controller.moveSprite(mySprite)

{Step 4 - Keep the Player in the screen}

Notice that we can actually move our player off the screen. Let’s prevent that. From the ||sprites:Sprites|| Toolbox drawer, drag a ||sprites:set mySprite stay in screen|| block and drop after the ||controller:move mySprite|| block.

scene.setBackgroundImage(img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
`)
let mySprite = sprites.create(img`
. . . . . f f 4 4 f f . . . . .
. . . . f 5 4 5 5 4 5 f . . . .
. . . f e 4 5 5 5 5 4 e f . . .
. . f b 3 e 4 4 4 4 e 3 b f . .
. . f 3 3 3 3 3 3 3 3 3 3 f . .
. f 3 3 e b 3 e e 3 b e 3 3 f .
. f 3 3 f f e e e e f f 3 3 f .
. f b b f b f e e f b f b b f .
. f b b e 1 f 4 4 f 1 e b b f .
f f b b f 4 4 4 4 4 4 f b b f f
f b b f f f e e e e f f f b b f
. f e e f b d d d d b f e e f .
. . e 4 c d d d d d d c 4 e . .
. . e f b d b d b d b b f e . .
. . . f f 1 d 1 d 1 d f f . . .
. . . . . f f b b f f . . . . .
`, SpriteKind.Player)
controller.moveSprite(mySprite)
mySprite.setStayInScreen(true)

{Step 5 - Initialize the Score and number of Player Lives}

Let’s set the score to 0 and give our player 3 lives when the game starts. From the ||info:Info|| Toolbox drawer, drag both a ||info:set score|| block and a ||info:set life|| block, and drop them in after the ||sprites:set mySprite stay in screen|| block.

scene.setBackgroundImage(img`
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111199999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999999111119999999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555555
9999999999999999999999999999999999999999999911111111111199999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999999999911111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999911111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999999111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999911111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999555555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999955555555555555555555
9999999999999999999999999999999111111111111111111111111119999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999999999999999999999999999999999999999999999999999995555555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999999999911111111111199999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999999111111111111111111119999999999999999999999999999999999999955555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999995555555555555555
9999999999999999999999999999999111111111111111111111111111999999999999999999999999911111111111111111111111999999999999999999999999999999999999999555555555555555
9999999999999999999999999999999911111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999955555555555555
9999999999999999999999999999999999111111111111111111111111999999999999999999999991111111111111111111111111999999999999999999999999999999999999999999555555555555
9999999999999999999999999999999999991111111111111111111119999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999955555555555
9999999999999999999999999999999999991111111111111111111199999999999999999999999911111111111111111111111111199999999999999999999999999999999999999999999555555555
9999999999999999999999999999999999999111111111119111199999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999955555
9999999999999999999999999999999999999911111111119999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999991111111111111111111111111119999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111111111111999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999111111111111111119999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999911111111111111199999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999991111111199999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999977997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999799997977999779999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999777769979767797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999997777777797777777999799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999997977777777777777779999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977779779796777777777779996979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777797779797767779777977996679999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999777677777777777777777797999979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997979977977777767779777779977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999799777777799777777777777977979999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99997979777796776e9777777e77767676999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9997766977777767e7777977e777977977699999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999797777777776eee767997e77e777997999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9979779977977777777e7e7ee777797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9797777777777797977777776796797977999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
777979796777e77e7e77ee77e666779797999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977697777ee77777eee97979779799999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999777777e7eee7e7eee997979777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999977996799e7e7eeee999997777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999997976777777799eeee99999777999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999977776777979999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999979977777999999eeeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999797779999999eeee9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999eeee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aaa999999999999999999999999999999999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999a3a999977777777777777777777777799999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999aa3777777777777777777777777777779999999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999999777777777777777777777777777722777799999999999999999999999999999
9999999999999999999999eee999999999999999999999999999999999999999999999999999999999999999999999977777777777777777777777777777725477779999999999999999999999999999
9999999999999999999999eeee99977777777777777999999999999999999999999999999999999999999999999999777777777777777777777777777777722777777999999999999999999999999999
9999999999999999999999eeee77777777777777777777999999999999999999999999999999999999999999999997777777557777777777777777777777722777777799999999999999999999999999
99999999999999999999999eee77777777777777777777779999999999999999999999999999999999999999999777777775257777777777777777777777777777777779999999999999999999999999
99999999999999999999977eee77777777777777777777777799999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999999777777eee77777777777777777777777777999999999999999999999999999999999999977777777775257777777777777777777777777777777777999999999999999999999999
99999999999999977777777eee77777777777777777777777777799999999999999999999999999999999977777777777775557777777777777777777777777777777777799999999999999999999999
9999999999999977777777777777777777777777777777777777777999999999999999999999999999999777777777777777557777777777777777777777777777777777777999999999999999999999
9999999999997777777777777777777777777777777777777777777799999999999999999999999999997777777777777777777777777777777777777777577777777777777799999999999999999999
9999999999997777777777777777777777777777777777777777777777799999999999999999999999977777777777777777777777777777777777777775577777777777777779999999999999999999
9999999999777777777777777777777777777777777777777777777777777799999999999999999997777777777777777777777777777777777777777775477777777777777777999999999999999999
99999999977777777777777777777aaa77777777777777577777777777777777999999999999999977777777777777777777777777777777777777777777477777777777777777799999999999999999
99999997745777777777777777777a3aa7777777777777224777777777777777779999999999999777777777777777777777777777777777777777777777777777777777777777777999999999999999
99999977525777777777777777777a3aa7777777777772254777777777777777777777799997777777777777777777777777777777777777773777777777777777777777777777777799999999999999
99997777525777777777777777777aaa777777777777772277777777777777777777777777777777777777777777775777777777777777777a3a77777777777777777777777777777777799999999999
97777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777555777777777777777777aaa77777777777777777777777777777777777999999999
77777777757777777777777777777777777777777777777777777777777777777777777777777777777777777777545777777777777777777aa777777777777777777777777777777777777779999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777754577777777777777777777777777777777777777777777777777777777777999999
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777775777777777777777777777777777777777777777777744277777777777777777779
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777722277777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777525777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777555777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777755777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777727777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777724777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777457777777777
777777777777777777777777777777777a547777777777777777777777777724777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777
777777777777777777777777777777777a557777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777557777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777747777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777777a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777447777777777777777777777777aa3a77777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777a33aa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa3a7777777777777777777777
777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777aaa7777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777a3777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
77777777777777777777777777777777777777777777777777777777777777777777777777777777777aa777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
7777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
`)
let mySprite = sprites.create(img`
. . . . . f f 4 4 f f . . . . .
. . . . f 5 4 5 5 4 5 f . . . .
. . . f e 4 5 5 5 5 4 e f . . .
. . f b 3 e 4 4 4 4 e 3 b f . .
. . f 3 3 3 3 3 3 3 3 3 3 f . .
. f 3 3 e b 3 e e 3 b e 3 3 f .
. f 3 3 f f e e e e f f 3 3 f .
. f b b f b f e e f b f b b f .
. f b b e 1 f 4 4 f 1 e b b f .
f f b b f 4 4 4 4 4 4 f b b f f
f b b f f f e e e e f f f b b f
. f e e f b d d d d b f e e f .
. . e 4 c d d d d d d c 4 e . .
. . e f b d b d b d b b f e . .
. . . f f 1 d 1 d 1 d f f . . .
. . . . . f f b b f f . . . . .
`, SpriteKind.Player)
controller.moveSprite(mySprite)
mySprite.setStayInScreen(true)
info.setScore(0)
info.setLife(3)

{Step 6 - Game Update}

Every 5 seconds, we want a clover and a bee to appear in our game. From the ||game:Game|| Toolbox drawer, drag an ||game:on game update on every|| block onto the Workspace (you can place this anywhere). Click on the 500 ms update interval and change it to 5 seconds (or 5000 milliseconds).

game.onUpdateInterval(5000, function () {

})

{Step 7 - Add a Clover Projectile}

A Projectile is a Sprite that moves on its own. From the ||sprites:Sprites|| Toolbox drawer, drag a ||variables:set projectile to|| ||sprites:projectile from side|| block and drop into the ||game:on game update on every|| block. Click on the grey oval to open the sprite image editor and draw an image of a 4-leaf Clover.

let projectile: Sprite = null
game.onUpdateInterval(5000, function () {
    projectile = sprites.createProjectileFromSide(img`
f f f f f f . . . . f f f f f f
f 7 7 7 7 f f . . f f 7 7 7 7 f
f 7 7 7 7 7 f . . f 7 7 7 7 7 f
f 7 7 7 7 7 f f f f 7 7 7 7 7 f
f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
. f f f 7 7 7 7 7 7 7 7 f f f .
. . . f f 7 7 7 7 7 f f . . . .
. f f f f 7 7 7 7 7 f f f f f .
f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
f 7 7 7 7 f f f f 7 7 7 7 7 7 f
f 7 7 7 f . f 7 f f 7 7 7 7 7 f
f 7 7 f f . f 7 . f 7 7 7 7 f .
f f f f . . f 7 7 f f 7 7 f f .
. . . . . . . f 7 7 . f f f . .
. . . . . . . f 7 f . . . . . .
`, 50, 50)
})

{Step 8 - Add Random Movements}

Notice how our Clovers are always coming from the top right in a diagonal direction. Let’s add some random movements by setting the X and Y velocity values. From the ||math:Math|| Toolbox drawer, drag out 2 ||math:pick random|| blocks onto the workspace. Drop one into the vx value and drop the other into the vy value of the ||variables:set projectile to|| ||sprites:projectile from side|| block. In each of the ||math:pick random|| blocks, change the minimum and maximum values to -50 and 50.

let projectile: Sprite = null
game.onUpdateInterval(5000, function () {
    projectile = sprites.createProjectileFromSide(img`
f f f f f f . . . . f f f f f f
f 7 7 7 7 f f . . f f 7 7 7 7 f
f 7 7 7 7 7 f . . f 7 7 7 7 7 f
f 7 7 7 7 7 f f f f 7 7 7 7 7 f
f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
. f f f 7 7 7 7 7 7 7 7 f f f .
. . . f f 7 7 7 7 7 f f . . . .
. f f f f 7 7 7 7 7 f f f f f .
f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
f 7 7 7 7 f f f f 7 7 7 7 7 7 f
f 7 7 7 f . f 7 f f 7 7 7 7 7 f
f 7 7 f f . f 7 . f 7 7 7 7 f .
f f f f . . f 7 7 f f 7 7 f f .
. . . . . . . f 7 7 . f f f . .
. . . . . . . f 7 f . . . . . .
`, randint(-50, 50), randint(-50, 50))
})

{Step 9 - Add Bee Projectile }

Now let’s add a Bee projectile. Right-click on the ||variables:set projectile to|| ||sprites:projectile from side|| clover block that we just created and select Duplicate. Drop the copied block after the existing clover projectile block, click on the ||variables:projectile|| variable name drop-down, and select New variable. Name this variable “bee”. Then click on the grey oval to open the sprite image editor and draw an image of a bee.

Create the bee projectile

let projectile: Sprite = null
let bee: Sprite = null
game.onUpdateInterval(5000, function () {
    projectile = sprites.createProjectileFromSide(img`
f f f f f f . . . . f f f f f f
f 7 7 7 7 f f . . f f 7 7 7 7 f
f 7 7 7 7 7 f . . f 7 7 7 7 7 f
f 7 7 7 7 7 f f f f 7 7 7 7 7 f
f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
. f f f 7 7 7 7 7 7 7 7 f f f .
. . . f f 7 7 7 7 7 f f . . . .
. f f f f 7 7 7 7 7 f f f f f .
f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
f 7 7 7 7 f f f f 7 7 7 7 7 7 f
f 7 7 7 f . f 7 f f 7 7 7 7 7 f
f 7 7 f f . f 7 . f 7 7 7 7 f .
f f f f . . f 7 7 f f 7 7 f f .
. . . . . . . f 7 7 . f f f . .
. . . . . . . f 7 f . . . . . .
`, randint(-50, 50), randint(-50, 50))
    bee = sprites.createProjectileFromSide(img`
. . . . . . . f f f f f f . . .
f . . . . f f f 1 1 1 1 f f . .
. f . . . f 1 1 1 1 1 1 1 f f .
. f . . . f 1 1 f 1 f 1 1 1 f .
f f f . . f 1 1 f 1 f 1 1 1 f .
2 f f f f f f f f f f f f f f .
f f f f f f 5 f 5 f 5 f 5 f f f
f f f f 5 f 5 f 5 f 5 f 5 f f f
. . f f 5 f 5 f 5 f 5 f 5 f f 2
. . . f f f 5 f 5 f 5 f 5 5 f 2
. . . f f f f f 5 f 5 f 5 5 f f
. . . f 1 f 1 f f f f f f f f f
. . . f 1 f 1 f 1 f 1 1 1 f . .
. . f f 1 f 1 f 1 1 1 1 f . . .
. . f 1 1 1 1 1 1 1 f f . . . .
. . f f f f f f f f f . . . . .
`, randint(-50, 50), randint(-50, 50))
})

{Step 10 - Set the Bee to Enemy}

To make the Bee an enemy sprite, we need to set its kind. From the ||sprites:Sprites|| Toolbox drawer, under the Overlaps category, drag a ||sprites:set sprite kind|| block and drop after the ||variables:set bee to|| ||sprites:projectile|| block. Click on the ||variables:mySprite|| variable drop-down menu and select the bee variable. Click on the ||sprites:Player|| kind drop-down menu and select ||sprites:Enemy|| sprite kind.

let projectile: Sprite = null
let bee: Sprite = null
game.onUpdateInterval(5000, function () {
    projectile = sprites.createProjectileFromSide(img`
f f f f f f . . . . f f f f f f
f 7 7 7 7 f f . . f f 7 7 7 7 f
f 7 7 7 7 7 f . . f 7 7 7 7 7 f
f 7 7 7 7 7 f f f f 7 7 7 7 7 f
f f 7 7 7 7 7 f 7 7 7 7 7 7 f f
. f f f 7 7 7 7 7 7 7 7 f f f .
. . . f f 7 7 7 7 7 f f . . . .
. f f f f 7 7 7 7 7 f f f f f .
f f 7 7 7 7 7 7 7 7 7 7 7 7 f f
f 7 7 7 7 7 f f 7 7 7 7 7 7 7 f
f 7 7 7 7 f f f f 7 7 7 7 7 7 f
f 7 7 7 f . f 7 f f 7 7 7 7 7 f
f 7 7 f f . f 7 . f 7 7 7 7 f .
f f f f . . f 7 7 f f 7 7 f f .
. . . . . . . f 7 7 . f f f . .
. . . . . . . f 7 f . . . . . .
`, randint(-50, 50), randint(-50, 50))
    bee = sprites.createProjectileFromSide(img`
. . . . . . . f f f f f f . . .
f . . . . f f f 1 1 1 1 f f . .
. f . . . f 1 1 1 1 1 1 1 f f .
. f . . . f 1 1 f 1 f 1 1 1 f .
f f f . . f 1 1 f 1 f 1 1 1 f .
2 f f f f f f f f f f f f f f .
f f f f f f 5 f 5 f 5 f 5 f f f
f f f f 5 f 5 f 5 f 5 f 5 f f f
. . f f 5 f 5 f 5 f 5 f 5 f f 2
. . . f f f 5 f 5 f 5 f 5 5 f 2
. . . f f f f f 5 f 5 f 5 5 f f
. . . f 1 f 1 f f f f f f f f f
. . . f 1 f 1 f 1 f 1 1 1 f . .
. . f f 1 f 1 f 1 1 1 1 f . . .
. . f 1 1 1 1 1 1 1 f f . . . .
. . f f f f f f f f f . . . . .
`, randint(-50, 50), randint(-50, 50))
    bee.setKind(SpriteKind.Enemy)
})

{Step 11 - Add Overlaps behavior}

Now let’s add code that will increment our score when the ||sprites:Player|| collects a clover. From the ||sprites:Sprites|| Toolbox drawer, in the Overlaps section, drag an ||sprites:on sprite overlaps|| block and drop on the Workspace (you can place this anywhere). Click on the last ||sprites:Player|| kind drop-down menu and select ||sprites:Projectile|| sprite kind.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {

})

{Step 12 - Destroy Clover}

From the ||sprites:Sprites|| Toolbox drawer, drag a ||sprites:destroy sprite|| block and drop in the ||sprites:on sprite overlaps|| block. In the ||sprites:on sprite overlaps|| block, drag the ||sprites:otherSprite|| local variable (representing the specific overlapping clover) into the ||sprites:destroy sprite|| block replacing ||sprites:mySprite||.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
    otherSprite.destroy()
})

{Step 13 - Add Effect }

In the ||sprites:destroy sprite|| block, click on the Plus (+) icon to expand. Click on the spray effect drop-down menu and select an effect that you want to display when your ||sprites:Player|| collects a Clover. Click on the 500 ms drop-down menu and select 100 ms for the duration of your effect.

Choose a destroy effect

sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
    otherSprite.destroy(effects.confetti, 100)
})

{Step 14 - Play a Sound}

From the ||music:Music|| Toolbox drawer, drag a ||music:play sound|| block, and drop after the ||sprites:destroy sprite|| block.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
    otherSprite.destroy(effects.confetti, 100)
    music.baDing.play()
})

{Step 15 - Change Score}

From the ||info:Info|| Toolbox drawer, drag a ||info:change score|| block and drop after the ||music:play sound|| block.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Projectile, function (sprite, otherSprite) {
    otherSprite.destroy(effects.confetti, 100)
    music.baDing.play()
    info.changeScoreBy(1)
})

{Step 16 - Add Overlaps behavior for Bee }

Now let’s add behavior for when our ||sprites:Player|| runs into a bee. Right-click on the the ||sprites:on sprite overlaps|| block that we were just working on, and select Duplicate to make a copy of this chunk of code. Don’t worry if it looks disabled, we’ll fix that. In the copied ||sprites:on sprite overlaps|| block, click on the ||sprites:Projectile|| kind drop-down menu and select ||sprites:Enemy|| for the kind.

Duplicate the overlap event for the enemy

sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
    otherSprite.destroy(effects.confetti, 100)
    music.baDing.play()
    info.changeScoreBy(1)
})

{Step 17 - Change effects and sounds}

In the ||sprites:destroy|| enemy block, select a different effect when your player runs into a bee. In the ||music:play sound|| block, select a different sound when your player runs into a bee.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
    otherSprite.destroy(effects.disintegrate, 100)
    music.pewPew.play()
    info.changeScoreBy(1)
})

{Step 18 - Lose a life}

Instead of adding a score, let’s change the code to lose a life when our player runs into a bee. Delete the ||info:change score|| block. From the ||info:Info|| Toolbox drawer, drag a ||info:change life|| block and drop after the ||music:play sound|| block.

sprites.onOverlap(SpriteKind.Player, SpriteKind.Enemy, function (sprite, otherSprite) {
    otherSprite.destroy(effects.disintegrate, 100)
    music.pewPew.play()
    info.changeLifeBy(-1)
})

{Step 19 - Play your Game!}

That’s it! Now try playing your game in the full screen simulator. You can also try downloading your game to a hardware device, or Share your game with others!