Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///Bullet hit
- if position_meeting(obj_dangerzone.x, obj_dangerzone.y, obj_bullet)
- and
- !audio_is_playing (snd_playerhit)
- {
- audio_play_sound (snd_playerhit, 10, false);
- }
- ///Check for hitsound being played
- if audio_is_playing (snd_playerhit)
- {
- instance_destroy();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement