minor tweaks to player collision and interact raycast

This commit is contained in:
Derek
2024-10-05 17:10:11 -05:00
parent 21b82f3d5c
commit 730b9cd1bf
12 changed files with 94 additions and 83 deletions

View File

@@ -128,7 +128,7 @@ func die():
Engine.time_scale = .05
AudioServer.set_bus_effect_enabled(0,0,true)
var deadmsg = DEAD_ANNOUNCE.instantiate()
last_hit.add_child(deadmsg)
get_parent().add_child(deadmsg)
var instance_dead = dead_player.instantiate()
instance_dead.global_position = player.global_position
instance_dead.transform.basis = player.global_transform.basis

View File

@@ -1,8 +1,8 @@
extends CharacterBody3D
const WALK_TRANSITION_SPEED = 10
const WALK_TRANSITION_SPEED = 8
const MAX_AIR_DASH = 1
const FLASHLIGHT_BRIGHTNESS = 10
const FLASHLIGHT_BRIGHTNESS = 20
const KICK_AMOUNT = 10
var speed