Hello, so, i started using Godot a few Days ago, did a Test Project and now wanted to make my real Project with my Idea i had before, now i used some Code from the Q&A, did some small Edits and for some Reason my Player Sprites arent just showing in the Test Player.
Heres the Code:
extends KinematicBody2D
export (int) var speed = 200
const GRAVITY = 100
var movement = Vector2()
var velocity = Vector2()
func _physics_process(delta):
get_input()
velocity = move_and_slide(velocity)
func get_input():
rotation = get_global_mouse_position().angle_to_point(position)
velocity = Vector2()
if Input.is_action_pressed("down"):
velocity = Vector2(-speed, 0).rotated(rotation)
if Input.is_action_pressed("up"):
velocity = Vector2(speed, 0).rotated(rotation)
func _process(delta):
movement.x = 0
if is_on_ceiling() or is_on_floor():
movement.y= 0
if movement.y < 200:
movement.y = movement.y + GRAVITY * delta
And here some Screenshots:




The Mistake is probably incredibly stupid but i just dont find anything on it.