Another obstacle - trunk was given bullet behaviour.
For collecting items, the code used was - characater on collision with object - destroy.
code:
For enemy in level 2:
ladybug was given double sine behaviour, one that moves horizontal and vertical to make the level harder than level 1.
The properties for behaviour:
For bee (enemy), that moves across the layout in a sine movement, was given 3 behaviours : wrap (layout), bullet and sine.
Properties:
Code:
event:
bee is on screen.
system- trigger once.
action: set bullet enabled.
set angle and set sine active.
For obstacle -scissors falling from up to down, bullet behaviour is added.
Code:
For another obstacle- watering can, sine behaviour is added.
For collecting items, the code used was - characater on collision with object - destroy.
code:
For enemy in level 2:
ladybug was given double sine behaviour, one that moves horizontal and vertical to make the level harder than level 1.
The properties for behaviour:
For bee (enemy), that moves across the layout in a sine movement, was given 3 behaviours : wrap (layout), bullet and sine.
Properties:
Code:
event:
bee is on screen.
system- trigger once.
action: set bullet enabled.
set angle and set sine active.
For obstacle -scissors falling from up to down, bullet behaviour is added.
Code:
For another obstacle- watering can, sine behaviour is added.
No comments:
Post a Comment