Hello,
I try to make a little game and I have some problem due to lack of knowledge (I'm a beginner), so I really hope you can help me, and in advance thanks for your time and conseideration.
Well let's go I have a family of "enemies" set:
-enemytype1
-enemytype2
-enemytype3
....
I have imported in "sound" some m4a files:
-enemytype1sound.m4a
-enemytype2sound/m4a
....
I want to spawn a random enemy each type so i've did each 2 seconds spawn "enemies" on layer 2
"enemies" is the family group.
So my question is when the game random pick an enemytype from the "enemies" family how do I play the corresponding sound when the sprite spawn on screen ?
Thanks again I hope I'm clear
NG