/
evggal
/
math_game
Обзор
Документация
Войти
/
evggal
/
math_game
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/camera_2d.gd
14 строк
365 B
DerFreimensch
изучал объект игрока и камеру
24 сен 2024, 22:38
24 сен 2024, 22:38
250b51a
Код
Авторство
О чём код?
extends Camera2D var player: CharacterBody2D; # Called when the node enters the scene tree for the first time. func _ready(): player= get_node_or_null("/root/MainScene/MainChar") # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): if player != null: position.x=player.position.x position.y=player.position.y