so_many_mars/objects/oPlayer/Collision_oEnemy.gml
Tyrel Souza 8854b848bc init
2022-02-21 18:45:19 -05:00

13 lines
273 B
Plaintext

/// @description Insert description here
// You can write your code in this editor
//TODO: move the enemy somewhere `other`
// If not invivcible, set iframes count, then do damage.
if iframes == 0 {
iframes = 20;
hp -= other.damage;
if hp < 0 {
game_restart();
}
}