You enable/disable the platform or 8-direction behaviour (however they move). Assuming they are two different objects, have an instance variable on the change player button that goes between 1 and 2 when clicked or something similar. When the button shows 1, then enable movement on player 1, disable on player 2, when the button shows 2, then disable movement on player 1, enable on player 2.