• 25 playable loops via a single button
    9 replies, posted
how would i make a button that plays 25 soundloops, with the soundloop changing each time you press the button, plus a button that stops the sound i don't have experience nearly at all with all those complex entities, but i'd imagine that this would have something to do with logic_case and logic_compare
25 logic relays. All of them set to disable themselves and enable the next one. The button is set to trigger them all.
Use IronPhoenix's idea. I was going to suggest a logic_case with the PickRandomShuffle input but you have more than 16, so nevermind.
[QUOTE=Zanarias;29611258]Use IronPhoenix's idea. I was going to suggest a logic_case with the PickRandomShuffle input but you have more than 16, so nevermind.[/QUOTE] You can use multiple logic_case, but it would be a ton more complicated.
i don't understand what do i do i name the 25 relays r1 r2 r3 etc., what next? do i choose "disable at start" yes or no or do i enable them via trigger? what about the sound entitys? if i enable them all via that button, logically it would only play 1 soundloop. there is something that i haven't thought of
Ok...step by step. Create a button and 25 logic_relays. Set 24 of them to disabled. The first one (r1) is enabled. Onpressed R1-25 Trigger In the relays, Ontrigger Sound Playsound Ontrigger (current relay) disable Ontrigger (next relay) enable
oh it all makes sense now
[QUOTE=IronPhoenix;29612149]You can use multiple logic_case, but it would be a ton more complicated.[/QUOTE] I realized that which is why I said to go with your idea :v:
With that many loops, I'd recommend having a backward button as well.
[QUOTE=CaLeB-;29622959]With that many loops, I'd recommend having a backward button as well.[/QUOTE] for anyone else that didn't understand this at first, the first button makes r1 got to r2, r3, r4, etc. a backwards button would go from r4, r3, r2, r1, etc. Not only would that be unnecessary, it would also be complicated.
Sorry, you need to Log In to post a reply to this thread.