0

i making pause menu in ursina and i dont know how to disable mouse always on top and disable First Person Controller in ursina, a tryed:

player.FirstPersonController.disable()
rhacker
  • 5
  • 2

1 Answers1

3

You can do it that way

player.enabled = False
Cubix48
  • 2,607
  • 2
  • 5
  • 17
  • this code no function – rhacker Feb 18 '22 at 18:45
  • Can you share more code? For example how you initialized the First Person Controller. – Cubix48 Feb 18 '22 at 19:29
  • global menu menu = False global player quit.visible = False settingss.visible = False Play.visible = False player.visible = True top.visible = False FirstPersonController.visible = True logo.visible = False logo_text.visible = False player = FirstPersonController() gamescreen.visible = True loadingscreen.visible = False tree.visible = True global game game = True – rhacker Feb 19 '22 at 22:24