How to make an Array?
Is it possible to make an array call to specific outputs
e.g.
If Integer = 0, Then: Output 1
If Integer = 1, Then: Output 2
If Integer = 2, Then: Output 3
I've been playing around with logic_compare and math_counter. with counters working the best, the only problem is I have to have multiple counters and it would be so much easy if there was a function that did things like, If 'this' Then 'do that'.
The I/O system is pretty powerful, and I think using a math_counter and logic_compare would be the best way of making an "array". logic_compare is effectively "if value = X do this", you just have to setup each of those in it's Output.
Press it 1st time, a panel rotates 90degrees
Press it 2nd, the panel rotates back to original position
Press it 3rd, the panel rotates -90degrees
press it 4th, it rotates back to original and resets the pattern
Atm I'm using 1 math_counter to turn left, 1 to turn right 1 to turn centre.
I liked the idea of logic_compare but it only has equal to value, I guess if I change it's value constantly and compare value I could make it work.. I shall try this
edit: ok that won't work, it will still run the other outputs regardless as they are still equal to
Read this if you haven't: math_counter at the VDC
That is how I would do it anyway, without too much confusion 
msleeper wrote:
Set the button to tell the math_counter to Add 1. Then have the math_counter use the "OutValue" Output to the logic_compare.
That would also work too xD
msleeper wrote:
That setup (with 4 separate logic_relays) is a lot more complicated than using a single logic_compare.
I didn't read your comment before posting. It is a better way, however my way is a completely different alternative.
Please keep in mind if you can't get the logic case to work 
MrTwoVideoCards wrote:
Instead, why not have two buttons? I am sure that having two buttons would better communicate that based on their location against one another cause a panel to rotate either left or right.
This. From an HCI perspective, having buttons that do single things is much more discoverable and clear from a player's perspective.
Second, two buttons with two states is essentially a two-bit number, which lets you count to four. I knew this computer science degree would come in handy eventually...
But yeah man for reals, froma gameplay perspective thats ALWAYS a must. Goals and elements need to be extremely clear on how they function. You want the player to solve the puzzle, not solve how your entities work.