Add project code
This commit is contained in:
12
objects/o_potion/Step_0.gml
Normal file
12
objects/o_potion/Step_0.gml
Normal file
@@ -0,0 +1,12 @@
|
||||
// Pause
|
||||
if pause_movement() { exit; }
|
||||
|
||||
float_dir += float_spd;
|
||||
y = ystart + dsin(float_dir) * 2;
|
||||
|
||||
// Heal player
|
||||
if place_meeting(x, y, o_player) {
|
||||
o_player.hp += heal;
|
||||
audio_play_sound(item_pick, 0, false);
|
||||
instance_destroy();
|
||||
}
|
||||
Reference in New Issue
Block a user