jpav
New vMember
Posts: 3
|
Post by jpav on Jun 30, 2022 14:02:38 GMT
There are 3-4 playable characters. The player periodically switches from one character to another. How to make the switch correctly? It seems to me that disabling one character and enabling another is not quite the right method. Thank you in advance for your advice.
|
|
|
Post by Invector on Jul 4, 2022 18:29:43 GMT
that's one way of doing it, it's probably a good idea to add conditions to enable the change, just to make sure it doesn't broke anything for example you can't change when jumping, attacking, rolling, etc...
|
|
jpav
New vMember
Posts: 3
|
Post by jpav on Jul 13, 2022 20:44:18 GMT
that's one way of doing it, it's probably a good idea to add conditions to enable the change, just to make sure it doesn't broke anything for example you can't change when jumping, attacking, rolling, etc... I'm having a hard time with this. How can I do this if it's not a secret?
|
|
|
Post by Invector on Jul 18, 2022 19:22:20 GMT
You can create a 'character manager' with a list of active controllers, the controller that is active has certain conditions to change into another (that's just a theory, I didn't test it)
|
|