Animate buttons issue!!!!
Uplink1001
Member, PRO Posts: 64
Hi.
Just starting out with gamesald, so I thought first thing to try,,,,,,Make a soundboard.
Problem.
I have 9 buttons on the screen, each plays a different sound when pressed, (buttons show a play symbol when playing and a stop symbol when stopped) when I press the play on the first button the stop symbol should show, but all buttons change to the stop symbol????.
can anyone help me here....
thanks
Uplink1001
Comments
You probably have everything attached to one attribute, so when one goes off they all go off.
I would suggest using a table.
Also, don't make two threads of the same subject... @gyroscope?
Hi.
As I am new to this how do I go about creating a table?
Sorry NEWBIE.......
Uplink1001
Thanks for the head-up on that score, @zweg25
Hi @Uplink1001 As a person new to GSC and relatively new to the Forums I'd advise a couple of things:
• As @zweg25 rightly pointed out, you've already started a thread on this subject - I'll say again, if Forum users all made duplicate threads, we'd been in a right mess - confusion everywhere....
So in future, if you've not got your answer after a day or two, just post again at the end of the current thread to bring it up to the top of the pile again.
I won't merge your similar thread this time, I'll just close it, with a link to here.
• You create a table by going to the Home window of GSC, clicking on the tab marked Tables, then clicking the + sign.
Has to be mentioned, this is basic stuff which can be learned via the manual and the Cookbook tutorials (as well as much more there). I can highly recommend you read/work through these first, as there are a few or more "hidden" features in GSC which you might not discover immediately on your own.
http://gamesalad.com/manuals
https://help.gamesalad.com/hc/en-us/categories/200134158/
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Hi.
Thanks for the info. Sorry as I said new to all this, will give the manual and the cookbook tutorials a look.
Thanks again.
Uplink1001
HI.
Ok i have had a look at the cookbook tutorials and on some youtube video's, i now have the buttons animating as I want, when touched they change and play audio, and when touched again audio stops and button changes to previous, what I would like to know is, in Gamesalad is there an option for the button to change back automatically once the audio track has come to its end and finished playing? ..Have been looking for info on this but can't seem to find anything!!!!.
Thanks
Uplink1001
No, there is no way for GameSalad to know when the audio has stopped playing. The workaround would be to use a timer to switch the buttons back after the same time as it takes to play the audio. If you have many different lengths of audio files you will have to do a bit more complicated programming... But it's good practice
HI.
Thanks for that, seems a bit of a long work around, but I will try....
Thanks
Uplink1001
Hi @Uplink101 No behaviour to do that, as such, but there's a straightforward workaround:
Find out the exact length of your audio track in an Audio Editor (something like amadeus Pro, or the free one whose name escapes my mind or even Garageband) then put your Change Attribute behaviour in a Timer, set to After, the amount of seconds set there being the length of your audio.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Hi.
Cheers, will do that.
Thanks
Uplink1001
Hi.
Have another problem.
in gamesalad on the project info screen what do I choose for it to set my app to display correctly on my iphon4 when testing, it is set at the moment to iphone portrait and the resolution independence is ticked, but when I view it on my phone some of the apps buttons are slightly off screen, ( while building the app should I keep inside the lines on the design screen? as there 2 sets of white lined boxes when on the create scenes screen?) also If I set it up correctly for my iphone 4 will it display the same on the iphone 5?.
Thanks.
Uplink1001
HI again.
Can I just say thanks to gyroscope for his last input, That worked just fine (Change Attribute behaviour in a Timer, set to After, the amount of seconds set there being the length of your audio. )
adding to my last question in the preview player everything looks fine, it just when I view on my phone it is all a bit messed up. top and bottom parts of the app are off the phone's screen?
Thanks
Uplink101