Newbie need help::: help with button start animation

Uplink1001Uplink1001 Member, PRO Posts: 64

HI,
I am totally new to this, so be patient...
Problem I have 9 buttons on screen (actors) each plays a different sound when pressed, at the bottom of the screen is a equalizer, when I press one of the buttons I would like the equalizer to animate and when the sound has finished I would like it to stop animation. is this possible? ( I have all the animation pics for the equalizer).
Any help would be great.
Thanks
(Newbie) Uplink1001
P.S was using MobiOne, but not great to use.....
can attach an image if someone can tell me how to do it.......

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Uplink1001, what you'll want to do is have your equalizer actor 'watch' for when a button is pressed then animate. To do that:

    1. Create a new Boolean Game Level Attribute (starting False) called 'activate' (or whatever you want)
    2. In each button you'll want to add a Change Attribute Behavior when the button is pressed to change Activate to True.
    3. Then in the Equalizer actor add a rule that watches for when Activate becomes True. Then do your animation.
    4. After the animation is run, use a Change Attribute Behavior to change Activate back to False.
    
  • allc1865allc1865 Member, PRO Posts: 777

    Hi, here's a template showing you how to do it.
    There's only two music actors, not 9, but you can easily create more actors and play different sounds and animations.
    You would simply create a series of equalizer images and put that in the animation box section.

    To get you started learning GameSalad, you can learn a lot of things by going to GSHelper.com and downloading templates, or by watching their videos here.
    Also, try out @DeepBlueApps' site. He's got a lot of good templates that are both free and available for purchase.

    Here's your template! Hope it helps!
    https://www.dropbox.com/s/q7hf1swvuysm54r/Archive 2.zip

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Thanks for that Jamie_c
    I will give that a try and get back.
    Thaks again.
    Uplink1001

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    HI. Jason_c
    would it be possible for you to go into a more detailed explanation?
    New to this you see.
    Thanks.
    Uplink1001

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Thanks for the example.
    will get back with results.
    Uplink1001

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    @Uplink1001, the example you are checking out pretty much does what I outlined above... :)

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Hi.
    all working except for the animation of the equalizer does not stop when the sound has finished, is there a way to do this?
    so far great stuff (well done that man)
    Thanks
    Uplink1001

  • allc1865allc1865 Member, PRO Posts: 777

    Hi, were you playing around with the template, because I just opened it and it works fine.

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    hi.
    No, just set up all the rules and attributes in my development app, all works except for the animation not stopping when the audio has finished playing, does stop when you press the a second time though.

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    that should have been does stop when you press the audio play button a second time.

  • allc1865allc1865 Member, PRO Posts: 777

    Okay. It's pretty simple. Just go to your music actors that play the music, and in the otherwise section put, change attribute: musicOn_off to false.
    and in the animation of the equalizer actor put, change attribute: musicOn_off to false

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Thanks for that. I will give it a go.....

  • allc1865allc1865 Member, PRO Posts: 777

    In the equalizer actor, you want to put the change attribute in the otherwise of the rule that plays the animation.

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    will get back later tomorrow with results if it works.....
    Uplink1001

  • Uplink1001Uplink1001 Member, PRO Posts: 64

    Hi.
    This can now be classed as solved thanks to the guys above....
    All working now, great stuff Thanks......
    Uplink1001

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

This discussion has been closed.