Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ///Bullet hit
  2. if position_meeting(obj_dangerzone.x, obj_dangerzone.y, obj_bullet)
  3. and
  4. !audio_is_playing (snd_playerhit)
  5. {
  6. audio_play_sound (snd_playerhit, 10, false);
  7. }
  8.  
  9. ///Check for hitsound being played
  10. if audio_is_playing (snd_playerhit)
  11. {
  12. instance_destroy();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement