Im looking for some advice on how to transition my player into a ufo. Upon the player touching the ufo i want him to take control of it a and for the player to be removed but im not really sure how to go about it. Any help is appreciated :) .
The best way to do something like that is to have a player reference field in the class of the ufo. When the player touches it, set the field to the player and remove the player from the world. As long as the field in the ufo has a player referenced and the referenced player is not in the world, the ufo controls can be active. When the player leaves the ufo just add it back into the world. When the player is referenced and in the world and not touching the ufo, set the field back to 'null'.