Added delta to virtual mouse
This commit is contained in:
@ -10,4 +10,4 @@ func _ready():
|
|||||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
func _process(delta):
|
func _process(delta):
|
||||||
var movement = Input.get_vector("move_left","move_right","move_forward", "move_back")
|
var movement = Input.get_vector("move_left","move_right","move_forward", "move_back")
|
||||||
move_and_collide(movement * Cursor_Speed)
|
move_and_collide(movement * Cursor_Speed * delta)
|
||||||
Reference in New Issue
Block a user