Information about object: Cobby
Sprite: C_Idle/Mov
Solid: false
Visible: true
Depth: 0
Persistent: false
Parent: <no parent>
Mask: <same as sprite>
Step Event:
If Sprite Is T-Idle_X
If Health is Smaller Than 2
set the sprite to T-Phew_1_X with subimage 0 and speed 1
If Health is Greater Than 2
If Sprite Is T-Phew_2_X
set the sprite to T-Phew_3_X with subimage 0 and speed 1
if at relative position (30,0) there is object Nemico
for all Fatica_P_T: If Sprite Is <undefined>
execute code:
if(health <= 2 && !instance_exists(Ascia_Pickup))
{
instance_create(x, y, Ascia_Pickup)
}
if relative position (0,1) is collision free for Only solid objects
set the gravity to 2 in direction 270
else
set the gravity to 0 in direction 270
if relative position (-5,0) is collision free for Only solid objects
If Sprite Is C_Dan
jump relative to position (5,0)
if relative position (-5,0) is collision free for Only solid objects
If Sprite Is T-Dan_X
jump relative to position (-5,0)
If Sprite Is C_Idle/Mov
If Health is Smaller Than 2
set the sprite to C_Phew_1 with subimage 0 and speed 1
If Sprite Is C_Phew_2
If Health is Greater Than 2
set the sprite to C_Phew_3 with subimage 0 and speed 1
Collision Event with object Pavimento:
move in direction direction at most 12 till a contact with solid objects
set the vertical speed to 0
Collision Event with object Hit_Box_Pug:
If Sprite Is <undefined>
set the sprite to <undefined> with subimage 0 and speed 1
If Sprite Is C_Idle/Mov
Set Health relative to -2
set the sprite to C_Dan with subimage 0 and speed 1
Keyboard Event for I-key Key:
If Sprite Is C_Idle/Mov
jump relative to position (10,0)
If Sprite Is T-Mov_D
jump relative to position (10,0)
Keyboard Event for M-key Key:
Set Health relative to -1
Keyboard Event for O-key Key:
If Health is Greater Than 1
If Sprite Is C_Idle/Mov
set the sprite to C_Att_1 with subimage 0 and speed 1
If Health is Greater Than 1
If Sprite Is T-Idle_X
set the sprite to T-Att_Asc_1 with subimage 0 and speed 1
Keyboard Event for P-key Key:
if relative position (5,0) is collision free for Only solid objects
If Sprite Is T-Idle_X
set the sprite to Rilascio_1 with subimage 0 and speed 1
for all Fatica_P_T: change the instance into object Fatica_A_T, not performing events
If Sprite Is T-Idle
if at relative position (100,0) there is object Ascia_Pickup
set the sprite to Raccolta_1 with subimage 0 and speed 1
for all Fatica_A_T: change the instance into object Fatica_P_T, not performing events
Keyboard Event for U-key Key:
If Sprite Is C_Idle/Mov
jump relative to position (-10,0)
If Sprite Is T-Mov_S_X
jump relative to position (-10,0)
Other Event: Animation End:
If Sprite Is T-Phew_1_X
set the sprite to T-Phew_2_X with subimage 0 and speed 1
If Sprite Is T-Phew_3_X
set the sprite to T-Idle_X with subimage 0 and speed 1
If Sprite Is C_Phew_1
set the sprite to C_Phew_2 with subimage 0 and speed 1
If Sprite Is C_Phew_3
set the sprite to C_Idle/Mov with subimage 0 and speed 1
If Sprite Is T-Att_Asc_1
set the sprite to T-Att_Asc_2 with subimage 0 and speed 1
Set Health relative to -2
for other object: create instance of object Hit_Box_Asc at relative position (180,70)
else
If Sprite Is T-Att_Asc_2
set the sprite to T-Idle_X with subimage 0 and speed 1
If Sprite Is C_Att_1
Set Health relative to -1
set the sprite to C_Att_2 with subimage 0 and speed 1
for other object: create instance of object Hit_Box_Pug at relative position (-180,70)
else
If Sprite Is C_Att_2
set the sprite to C_Idle/Mov with subimage 0 and speed 1
If Sprite Is Rilascio_1
create instance of object Ascia_Pickup at relative position (50,65)
set the sprite to Rilascio_2 with subimage 0 and speed 1
else
If Sprite Is Rilascio_2
set the sprite to T-Idle with subimage 0 and speed 1
If Sprite Is T-Dan_X
set the sprite to T-Idle_X with subimage 0 and speed 1
If Sprite Is C_Dan
set the sprite to C_Idle/Mov with subimage 0 and speed 1
If Sprite Is Raccolta_1
for all Ascia_Pickup: destroy the instance
set the sprite to Raccolta_2 with subimage 0 and speed 1
else
If Sprite Is Raccolta_2
set the sprite to T-Idle_X with subimage 0 and speed 1