Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Play a sound file without using play sound behavior

scitunesscitunes Posts: 4,047Member, Sous Chef
I'm working on a kids alphabet game. To keep the actor total down I have three actors that do the same thing in each level with different images. for example, in the "A" level actor 1 is an airplane, actor 2 is an apple, and 3 is an alligator. So I simply have a rule that says change attribute image to "letter"".png" and the images update automatically for each of the 26 levels (for letter of the alphabet). Works like a charm.

Now I am trying to do the same thing with the audio files. So when the apple icon is hit it says "A is for apple" and so on. I don't want to have to put 26 rule in this actor but I can't seem to find a way to mimic what I did for the graphics for the sounds.

Any ideas? Or am I stuck making 26 rules (when game.letternumber = 1 play Asound.ogg, etc.)



  • JamesZeppelinJamesZeppelin Posts: 1,927Member
    Just a thought

    There has got to be a way of naming your sounds letters and making a rule that adjusts

    If "a" play actor name that equals sound name... Something along those lines would work.

    That's how I did my level unlock system without needing a rule for each level.
  • scitunesscitunes Posts: 4,047Member, Sous Chef
    I remember reading that post about the level unlock and getting a bit dizzy! LOL

    I'm not sure how to even begin trying to approach it!
  • scitunesscitunes Posts: 4,047Member, Sous Chef
    Any other ideas out there on this one?
  • scitunesscitunes Posts: 4,047Member, Sous Chef
    I'm assuming this can't be done. I won't bump this again!

This discussion has been closed.