Information about object: o_m_1 Sprite: s_m_1
Solid: false
Visible: true
Depth: 0
Persistent: true
Parent: <no parent>
Mask: <same as sprite>
Create Event:
execute code:
hp_enemy=100
Step Event:
execute code:
image_angle=direction
if global.hp_enemy<=80 sprite_index=s_m_1_2
if global.hp_enemy<=60 sprite_index=s_m_1_3
if global.hp_enemy<=30 sprite_index=s_m_1_4
if global.hp_enemy<=0 instance_change(o_t_1,1)
perform a step towards position (o_hero.x,o_hero.y) with speed 2 avoiding solid only
Collision Event with object o_bullet:
execute code:
global.hp_enemy-=20
for all o_bullet: destroy the instance
create a small effect of type firework at (x,y) of color 255 below objects