- Home /
How to change the player while playing??
I'm developing a game in which the players pass notes to each other .The player who has the note gets the controls and is able to pass the note to the player next to him .Any help with the script/ code that I need ?
Answer by fuego_see_money · Sep 05, 2018 at 02:52 PM
In each Player
just make a flag isactiveplayer
default to false
and every time you change players set the flag to true for the new player and false to the old one.
Then only allow input in your Player
script if isactiveplayer
Is set to true.
Your answer
Follow this Question
Related Questions
Trying to find what player inputed in Text Input field 1 Answer
Hover Over Input Field Before Inputting? 2 Answers
How can i make my simple character controller rotate? 0 Answers
How can I make the script to play with the mouse? 0 Answers
Determining tile-based direction from controller analogue input 0 Answers