Box Setup

Box

Box is a sprite with two animations:

Idle animation is just one frame of a box.

Hit has 3 Frames

The Box has a Durability Instance Variable

and the Solid Behaviour.


Broken Box

Broken box is a different sprite to Box

It has one animation and four frames.

The Broken Box Sprite has the Physics behaviour.

and the Flash Behaviour.

Families

This is a way to group similar objects together 

to avoid repeating events.

Create a new family for the different fruits

Add all the fruit to the family.

Now Add the Physics Behaviour to the Fruits Family

This is so that the fruit will bounce around the level realistically.