Spawn Actor Sound and Text! (Finished)

Mathiashelseth99Mathiashelseth99 Member Posts: 37
edited July 2013 in Working with GS (Mac)
Is there any way too display text and play a sound when a actor is spawned at a random time?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sure, when you spawn the random actor spawn another actor at the same time.that has a display text behavior on it that also plays a sound.
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    edited July 2013
    But what codes, am i going to put in then?
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Make a new actor called Text (or whatever).

    Set the actors Alpha to 0 and add a Display Text Behavior to it and add a Play Sound Behavior to it.

    Then you would spawn this actor at the same time you spawn your random actor and it will display the text and play the sound.

    Are you not able to add the Display Text and Play Sound Behaviors directly to your random actor you are spawning for some reason?
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    it is not a random actor, it is a random time!
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Ah okay, does the above help enough?
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    I dont think so :(
    Can you try to explain it in another way?
    Thanks in Advice
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I posted this in another thread for someone else, but i think it bears repeating:

    I think you are getting ahead of yourself, this is a pretty basic concept, and if you don't build a solid foundation you are going to find yourself in deep water. Please take some time and go through the entire cookbook and watch every youtube video you can find. You will be so much better prepared for what you want to do.
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    Ok, Thanks Jonmulcahy ;)
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    My only problem is that i didnt find any tutorials that describes how to make a actor that spawns when another actor spawns randomly :( so if someone can please try to describe it to me, so i can learn how to do it? I think i have tried to find out how to do this for about 1 1/2 hours now! So please help me.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    if you are already spawning the first actor randomly, add a second spawn behavior that spawns the other actor as well.
  • Mathiashelseth99Mathiashelseth99 Member Posts: 37
    edited July 2013
    Ahhh, Of course Thanks for helping my brain think again ;)
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Glad it worked out.
Sign In or Register to comment.