Trying to add new enemy

This commit is contained in:
Jasmine
2021-12-04 17:54:29 -06:00
parent 1e8a8a15f8
commit 5a3ae103f5
20 changed files with 865 additions and 120 deletions

View File

@@ -16,11 +16,10 @@ func _ready() -> void:
# pass
func _on_Area2D_body_entered(body: Node) -> void:
self.limit_bottom = -223
self.limit_top = -737
func _on_PortalDarkForest_body_entered(body: Node) -> void:
self.limit_bottom = -224
self.limit_top = -736
self.limit_left = -32
self.limit_right = 448
var player = get_parent()
player.position = Vector2(-216,256)
#$YSort/Player/Camera2D.limit_bottom = -223
#$YSort/Player/Camera2D.limit_top = -737
player.position = Vector2(256,-232)