Created a basic start to a virtual mouse

This commit is contained in:
2024-08-15 02:06:49 -05:00
parent 8a000a0533
commit ac6befea9c
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,13 @@
extends RigidBody2D
@export_range(0,50,.1) var Cursor_Speed:float = 1
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
var movement = Input.get_vector("move_left","move_right","move_forward", "move_back")
move_and_collide(movement * Cursor_Speed)