Game Interface

Add a new Sprite to the Game Layout.

Call it UIFruit

In the Sprite Editor Select Load Frames


Select the UIFruit ZIP file

A Sprite with multiple different fruit frames will now be loaded.

SET THE ANIMATION SPEED TO 0

At the bottom of the screen the background has hooks

We are going to duplicate the UIFruit Sprite

The size of each fruit sprite is 128 x 128

So each fruit will be 128 pixels away from the previous one.

And hang each fruit on a hook using the following positions

From left to right (Y is always 1688) the X positions are:

Cherry: 92, Lemon: 220, Orange: 348, Tomato 476, Melon: 604, Coconut: 732, Pumpkin 860, Watermelon 988

Add a New Sprite

Call it UINext

Use the UINext image file

Give it the Tween behaviour

Position it at 92,1592

Add  New Sprite

Call it UIBest

Use the UIBest image file

Give it the Tween behaviour

Position it at 92, 1784

Add a new Text object

Call it TextScore

Set size to: 1080 x 96

Set position to: 0, 1820

Set Text to: Score: 0

Set size to: 48

Set Bold to: True

Align horizontally and vertically to: Center

Set the colour to: White

Play the recharge animation for the delay between each fruit drop

Now the player can no longer just spam fruits

Only allow the player to drop fruit if they are within the game boundary