In this example, we will add an item to the game that your player can collect. A future tutorial page will expand on this so that the item either gives the character another life, or makes them invulnerable for a certain length of time.
Step 1 is to create a new sprite for the item - but we don't want it to appear at the start of the game, we want it to be created at a random time and in a random position!
To do this, use an on game update every 500ms block, and combine this with a pick random block from the Math menu, to allow your item to be created at random times!
Try out this code and see what happens.
The next steps for this project are...