Spectator now captures mouse
This commit is contained in:
parent
9bdeb1d1e4
commit
00ea617f39
|
@ -7,6 +7,7 @@ var walk = 2
|
|||
|
||||
func _ready():
|
||||
camera.make_current()
|
||||
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
|
||||
|
||||
func _unhandled_input(event):
|
||||
if Input.is_action_pressed("MWU"):
|
||||
|
@ -29,7 +30,6 @@ func _physics_process(delta):
|
|||
var velocity = Vector3.ZERO
|
||||
var speed
|
||||
|
||||
|
||||
if Input.is_action_pressed("run"):
|
||||
speed = walk * 2
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue