Touch the right THING - how to?

japannewbiejapannewbie Member Posts: 9
edited November -1 in Working with GS (Mac)
Hey everyone,

Looking for some instruction on how I would accomplish this scenario.

Say 5 little actor boxes of different colors appear on the screen.
When they appear a sound is played that says "red."
The user then has to touch the box that is the color red to get the point.
Then the thing reloads with new boxes, and it says a different color, and you have to touch that one.

I know how to spawn random actors thanks to tshirbooth's tutorial.


I'm really not clear on how I can associate the "color" sounds with the actors, and have only the one sound for one of the actors play when they all spawn.

I also need to figure out how to track that the user touched the correct actor, but, one step at a time!

Comments

  • rlehmrlehm Member Posts: 320
    Every 30 seconds change attribute color to random 1,5

    In the background
    If color attribute 1 play sound red
    If 2 play sound pink, etc

    In the actors
    If touch
    And if attribute 1
    Change score to score +10
    Else, take a life, end scene, whatever,
    Timer .2
    Destroy

    Do this repeatedly for all choices

    else
  • japannewbiejapannewbie Member Posts: 9
    Very interesting! Thanks a ton - I'm going to chew on this and try to hook it up!
Sign In or Register to comment.