Fix hit stack calculation.

This commit is contained in:
Relintai 2021-12-27 14:27:33 +01:00
parent 9fad900a51
commit 1cb11ca32a
2 changed files with 2 additions and 1 deletions

View File

@ -132,6 +132,7 @@ func _add_to_map(var img : Image, pseed : int) -> void:
func get_hit_stack(var pos : Vector2) -> Array:
var r : Rect2 = get_rect()
var local_pos : Vector2 = pos - rect.position
r.position = Vector2()
var result : Array = Array()

View File

@ -13,7 +13,7 @@
[sub_resource type="Resource" id=2]
resource_name = "Spawner"
script = ExtResource( 4 )
rect = Rect2( 165, 197, 22, 25 )
rect = Rect2( 165, 197, 5, 5 )
locked = false
trainer = ExtResource( 8 )
vendor = ExtResource( 9 )