player.tscn: scholar of the first bullet casings
This commit is contained in:
parent
79cbd62a69
commit
bc57ba4171
45 changed files with 1429 additions and 113 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue