Trying to add new enemy
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user