Box Setup
Box
Box
Box is a sprite with two animations:
Box is a sprite with two animations:
Idle animation is just one frame of a box.
Idle animation is just one frame of a box.
Hit has 3 Frames
Hit has 3 Frames
The Box has a Durability Instance Variable
The Box has a Durability Instance Variable
and the Solid Behaviour.
and the Solid Behaviour.
Broken Box
Broken Box
Broken box is a different sprite to Box
Broken box is a different sprite to Box
It has one animation and four frames.
It has one animation and four frames.
The Broken Box Sprite has the Physics behaviour.
The Broken Box Sprite has the Physics behaviour.
and the Flash Behaviour.
and the Flash Behaviour.
Families
Families
This is a way to group similar objects together
This is a way to group similar objects together
to avoid repeating events.
to avoid repeating events.
Create a new family for the different fruits
Create a new family for the different fruits
Add all the fruit to the family.
Add all the fruit to the family.
Now Add the Physics Behaviour to the Fruits Family
Now Add the Physics Behaviour to the Fruits Family
This is so that the fruit will bounce around the level realistically.
This is so that the fruit will bounce around the level realistically.