mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Implemented most sounds (Missing Boss and Hero Laught))
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
extends Node2D
|
||||
|
||||
var CHANNEL = 2
|
||||
#one sound will be chosen at random
|
||||
export var SoundLibary :PoolStringArray=[]
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
var sound = SoundLibary[rand_range(0,SoundLibary.size())]
|
||||
SoundControler.pub_play_effect(sound,CHANNEL)
|
||||
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user