Please or Register to create posts and topics.

Cycling through outputs

Basically, I want to create 2 buttons that cycle forwards and backwards through some possible outputs (ie cycling through about 6 music tracks to play). Problem is, I have no clue how. I'm thinking probably math_counters and logic_cases, but I don't know. I tried searching, but I didn't exactly know what to search for this specific case.

Anyway, help is much appreciated.

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!

A math_counter will fire the outValue output with it's value whenever it changes. Send this to a logic_case's inValue input to let you set numbers. I'd set the case match options to go from 1-6, then use the outputs to play the music. Set the max/min of the counter to 0 and 7, then onHitMax and onHitMin you can setValue the value to 1 or 6 so it loops back. The input buttons could stop all the music then add or subtract 1 from the counter after a small delay.

My stuff:
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]

Ok, thank you. I'll be trying this out tomorrow. :thumbup:

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!