Godot Version
v4.3.stable.official [77dcf97d8]
Question
im trying to make a laser that the player can go through if they are dashing but for some reason the laser’s script doesnt notice the isDashing variable at all. Not getting errors either
Laser_Killzone_Dash.gd
func _on_body_entered(body: Node2D):
if not player.isDashing:
print("You died!")
body.get_node("AmberSprite").play("Laser")
$"../Laser cut".play()
timer.start()
Player.gd
if Input.is_action_just_pressed("Dash") and canDash:
isDashing = true