thsj2022/objects/obj_player_cirno/Collision_obj_powerup.gml

26 lines
403 B
Plaintext
Raw Permalink Normal View History

2022-08-22 23:53:47 -07:00
switch ( ceil(other.image_index) ) { case PLAYER_POWERUP_FLAMES: {
powerup_ammo = 500;
powerup = PLAYER_POWERUP_FLAMES;
break;
}
case PLAYER_POWERUP_LASER: {
powerup_ammo = 50;
powerup = PLAYER_POWERUP_LASER;
break;
}
case PLAYER_POWERUP_MISSILE: {
powerup_ammo = 200;
powerup = PLAYER_POWERUP_MISSILE;
break;
}
default: {
break;
}
}
with (other) {
instance_destroy();
}