diff --git a/MainMenu.tscn b/MainMenu.tscn index 4870396..98a87ae 100644 --- a/MainMenu.tscn +++ b/MainMenu.tscn @@ -21,7 +21,7 @@ use_filter = false font_data = ExtResource( 2 ) _sections_unfolded = [ "Font", "Settings" ] -[node name="Splash" type="TextureRect"] +[node name="Splash" type="TextureRect" index="0"] anchor_left = 0.0 anchor_top = 0.0 diff --git a/entities/human/Ghost.gd b/entities/human/Ghost.gd index 410b5d2..090a89f 100644 --- a/entities/human/Ghost.gd +++ b/entities/human/Ghost.gd @@ -10,7 +10,7 @@ func _ready(): hitpoints = 10 respawn_time = 3 - physics.init(ACCELERATION, FRICTION, Vector2(0, 0), MAX_VELOCITY) + physics.init(ACCELERATION, FRICTION, Vector2(0, 0), 0, MAX_VELOCITY) func enemy_process(delta): # Weg zum Spieler diff --git a/entities/human/HumanBodyBase.gd b/entities/human/HumanBodyBase.gd index dc5ca6f..a75b4ff 100644 --- a/entities/human/HumanBodyBase.gd +++ b/entities/human/HumanBodyBase.gd @@ -1,6 +1,6 @@ extends "res://entities/BodyBase.gd" -const GRAVITY = 40 +const GRAVITY = Vector2(0, 40) const MAX_VELOCITY = Vector2(200, 1000) func _ready():