Ok, too tired to think clearly, can't figure out what I have to do here to get this simple switch working. I identify the switches by instance variables and the switch activates Ok, but the state doesn't change, it just moves the block in one direction and one direction only. Can anyone spot what I'm doing wrong/missing here? Code below:
PLAYER Is overlapping SWITCH
--> System Pick BLOCK where BLOCK.ID = SWITCH.ID
----> Keyboard on Z pressed
------> BLOCK variable "state" = "deactive" -> BLOCK MoveTo move to (self.X, self.Y + 64) | Set state to "active"
------> BLOCK variable "state" = "active" -> BLOCK MoveTo move to (self.X, self.Y - 64) | Set state to "deactive"