Play a sound file without using play sound behavior

scitunesscitunes Member, Sous Chef Posts: 4,047
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"..game.letternumber..".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.)

Thanks!

Comments

  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    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 Member, Sous Chef Posts: 4,047
    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 Member, Sous Chef Posts: 4,047
    Any other ideas out there on this one?
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I'm assuming this can't be done. I won't bump this again!

    :)
Sign In or Register to comment.