player.tscn: scholar of the first bullet casings

This commit is contained in:
Haze Weathers 2023-05-08 01:00:38 -04:00
parent 79cbd62a69
commit bc57ba4171
45 changed files with 1429 additions and 113 deletions

View file

@ -4,7 +4,7 @@ export var speed = 120.0
export var direction = Vector2.RIGHT
func _on_TubeEntrance_area_entered(area):
if area.is_in_group("player"):
if area.is_in_group("player_hitbox"):
var player = area.get_parent()
player.global_position = global_position + Vector2(4.0, 4.0)
player.enter_transport(speed, direction)

View file

@ -1,5 +1,5 @@
extends Area2D
func _on_TubeExit_area_entered(area):
if area.is_in_group("player"):
if area.is_in_group("player_hitbox"):
area.get_parent().exit_transport()