Tried this:
- Created a 'Button' Object. Gave it a on/off state and named the property 'Switch'.
- Created a variable called 'ButtonPress'.
- Created a text array variable with an array of 2. 'ButtonArray'. There's two '0's of different color in the array: a green '0' and a red '0'.
- When the player presses the button, (ButtonPress=2; ButtonArray(ButtonPress)), the green '0' appears because the button is now in an 'on' state.
- When the player presses the button again, the red '0' should appear because it's now in an off state.
- I followed the guide on wiki: Created 'push button' task that calls out two seperate tasks. One of the tasks checks to see if the button is off, otherwise, it turns the button on. The other task checks if the button is on, otherwise, it turns the button off.
- According the colored '0' being displayed, this change never takes place. May have to do with task priority?
This is either a bug or I'm missing something major! Should be pretty easy to test on your end.
|