Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global.hp = 3
- draw_sprite(Healthpoints_spr,global.hp,view_xview+10,view_yview+5)
- hurt=0
- hurt=0
- if hurt=1{
- image_alpha=0.5;
- }else{
- image_alpha=1;
- }
- if global.hp < 1 instance_change( obj_player_death , 1 );
- if (hurt=0)
- {
- global.hp-=1//do your damage to the charactor
- hurt=1
- alarm[0]=30 //or whatever alarm you want and whatever time you want him to be invincable
- }
Advertisement
Add Comment
Please, Sign In to add comment