Hello guys,
I need some help implementing a functionality in my game. I have an actor X with an image that follows the mouse, this actor has it's own specific function set. I want to make a clickable icon that will function as a button, when clicked during the game it will release actor X and call up actor Y attaching the image corresponding to Y to follow the mouse. Actor Y will also has it's own function set
Scenario:
Actor X can only click on object A in the world (Object A disappears when clicked upon)
Actor Y can only click on object B in the world(Object B disappears when clicked upon)
Button that when clicked will switch from X to Y
Any pointers as to how the button functionality can be programmed? Any help would be much appreciated :)