mnmco's Recent Forum Activity

  • I have only one trigger that alternately plays multiple audios. Is there a way I can repeat the last audio played?

  • Like this?

    key 1 is down

    key 2 is down

    trigger once

    --- play sound

    thank you ... cheers

  • 21 isn't a key code for anything. Lookup "javascript keycode" on google to get a list of keycodes for the different key. Like this one:

    http://www.javascripter.net/faq/keycodes.htm

    Numpad 1's key code looks to be 97 if numlock is on.

    Ooops... now I know, but is it possible to combine two Numpad keys? If i press 21 = audio is played. Is it possible? tnx..

  • 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.

  • Stop duplicating threads. You need to wait 24 hrs before bumping, or the moderators will intervene.

    my bad ... Im just eager to finish this right away ... been searching for tuts the whole day ... tnx for reminding me..

  • I have Button A that plays 1-4 in my sounds folder, How would I play 5-7 in Button B?

    In the image I manage to play Button B but it played from 1-7 because of the action: add 1 to B

    what code will use to play 5 instead of 1?

    also How to set or loop Frame Animation back to 1?

    https://www.dropbox.com/s/ocpqwd8ctn4qn ... .capx?dl=0

    Please HELP! I know this is basic but I cant just figure it out.. <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad">

  • 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 ...

  • 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?

    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..

    this is my sample capx:

    drive.google.com/open ... 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.

  • If you are using triggers, you can't.

    Is there a way around it? instead of creating 2 triggers with the same events and actions.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • How do I add Keyboard and Touch together in one condition?

  • > blackhornettechnologies.com/Construct2Stuff/SoundCycle_BHT.capx

    >

    Wow! thank you so much.. Im beginning to understand the cycle..

    quick question ... what if i have 2 buttons and 2 sets of audios? if only I can make another folder in sounds. could i?

    Ooops.. Im using free edition.. thats why I cant create a subfolder in sounds.. anyways, THANK YOU BLACKHORNET for the quick response..

mnmco's avatar

mnmco

Member since 2 Jun, 2016

None one is following mnmco yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies