#my plane ina 2D shoot em up wont move no matter what
1 messages · Page 1 of 1 (latest)
Send ur code
ok
extends CharacterBody2D
@export var speed = 200
func _process(delta: float) -> void:
var move = Input.get_vector("left", "right", "up", "down")
if move:
velocity = move * speed
else:
velocity = Vector2.ZERO
move_and_slide()
this is the players script
did i do something wrong?
screenshot ur input map tab also
Did u attach the script to the player?
ye
Screenshot ur player scene tree
Nothing wrong in the script.
is it a bug or a glitch or something?
btw it's highly recommended to change _process to _physics_process for physics related code
Have u tried reloading the project
ye
the issue has been there from yesterday
well nothing to loose
so anything that will help will work
Try that and see if the issue persists
ok
IT WORKS
That's great!
You should add the Solved tag to the forum.
OK
THANKS FOR THE HELP
sry for caps