I want to do a game with 3D sections and some with a static camera. I implemented the FirstPersonController and it is working fine but I cannot find any way to disable it (if on_disable() is supposed to do this I cannot make it work) Therefore, I tried to simply delete it and set it up again as needed.
Setting up the 3D player
player = FirstPersonController
Deleting the 3D player
player.eternal = False
player.children = []
destroy(player)
player = Empty
For some reason however, the game continues to act as if FirstPersonController is still in use despite showing that the player was destroyed. Can anyone tell me if there is something I'm missing to delete the controller or a simpler way to disable it? Thank you in advance.
You can disable it like this:
player.enabled = False
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.