You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
408 B
18 lines
408 B
3 years ago
|
extends Node2D
|
||
3 years ago
|
onready var player = get_node("Player")
|
||
3 years ago
|
|
||
|
# Declare member variables here. Examples:
|
||
|
# var a = 2
|
||
|
# var b = "text"
|
||
|
|
||
|
|
||
|
# Called when the node enters the scene tree for the first time.
|
||
|
func _ready():
|
||
|
pass # Replace with function body.
|
||
|
|
||
|
|
||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||
|
func _process(delta):
|
||
3 years ago
|
player.position.y = clamp(player.position.y, 460, 500)
|
||
3 years ago
|
pass
|