Soundboard like App .. Need ideas and HELP!

Get help using Construct 2

Post » Sat Jun 04, 2016 1:29 am

Message: mnmco can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Im trying to make a soundboard like software for desktop. It consists of Sprites with multiple audios per sprite and each audio has a corresponding colored sprite. It will be triggered by touch and keyboard keys.

Problems I encounter / Questions:

Q1. With the help of BLACKHORNET I manage to create One Sprite which played 4 audios alternately.

Now, what will I do if there are multiple sprites with Audios? Sprite NO (4 audios), Sprite YES (3 audios), Sprite blah blah ... etc

Q2. I created 2 triggers (touch and keyboard) with same events and actions to a Sprite. How will I minify this into a function to make it one trigger only?

Image


Q3. I created a Sprite with 4 extra colored frames. I want to run them in order. Sprite NO ( 1st press: audio1 - green frame, 2nd press: audio2 - orange frame, etc)

I tried using object clicked set frame as choose(1,2,3,4). It only chooses the frame randomly. I want to make it in order. How? Also how to make it work with touch and keyboard..

Image


this is my sample capx:

https://drive.google.com/open?id=0B5qN2 ... 0xmT1lkU0k

I dont have any background of Programming language or whatsoever. Please just bear with me if I cannot truly understand some if not all of your help and explanations. Its better if you could provide me VISUAL samples, Capx samples, etc.
I can better analyze them that way. Thanks in advance.
B
8
S
1
G
1
Posts: 26
Reputation: 958

Post » Sat Jun 04, 2016 4:59 am

Q1, not sure I understand

Q2. check the manual and/or the tutorials for 'function'

Q3. don't use choose. choose is a command to randomly choose. just put the number you want to choose. for the next one, you could say self.animationframe +1
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Sat Jun 04, 2016 8:58 am

spacedoubt wrote:Q1, not sure I understand

Q2. check the manual and/or the tutorials for 'function'

Q3. don't use choose. choose is a command to randomly choose. just put the number you want to choose. for the next one, you could say self.animationframe +1


I will rephrase my Q's

Q1. How will play audios by group? like in the image my NO sprite/button is playing the audios under the subfolder NO. how will I code it in my YES sprite/button to play the audios under the YES subfolder?

Q3. How will I loop the set animation back to frame 1?

Thanks for the reply ...
B
8
S
1
G
1
Posts: 26
Reputation: 958

Post » Sat Jun 04, 2016 3:56 pm

http://www.blackhornettechnologies.com/ ... d_BHT.capx
I've switched over to using instance variables, instead of globals. This would be even easier with Families, but here's Yes & No, with multi-triggers, functions, and using an offset to sync the frames & sound names. Each item still counts from 0 to X, but Yes will offset the number to get the sound name. Subsequent buttons would do something similar.
ImageImageImage
B
71
S
21
G
220
Posts: 3,646
Reputation: 123,721

Post » Sun Jun 05, 2016 3:43 am

blackhornet wrote:http://www.blackhornettechnologies.com/Construct2Stuff/soundboard_BHT.capx
I've switched over to using instance variables, instead of globals. This would be even easier with Families, but here's Yes & No, with multi-triggers, functions, and using an offset to sync the frames & sound names. Each item still counts from 0 to X, but Yes will offset the number to get the sound name. Subsequent buttons would do something similar.


Wow! It is absolutely perfect! It behaves well the way I want it to.. Thank you so much for the time and patience for fixing my code.
B
8
S
1
G
1
Posts: 26
Reputation: 958


Return to How do I....?

Who is online

Users browsing this forum: Clark Thy Lord and 1 guest