14 lines
279 B
GDScript
14 lines
279 B
GDScript
extends Camera2D
|
|
|
|
signal enter_portal
|
|
|
|
|
|
func _on_PortalDarkForest_body_entered(_body: Node) -> void:
|
|
limit_bottom = -224
|
|
limit_top = -736
|
|
limit_left = -32
|
|
limit_right = 448
|
|
get_parent().position = Vector2(256, -232)
|
|
emit_signal('enter_portal')
|
|
return
|