11 lines
234 B
GDScript3
11 lines
234 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
export(NodePath) var player_path
|
||
|
export(NodePath) var map_path
|
||
|
|
||
|
onready var player = get_node(player_path) as Node2D
|
||
|
onready var map = get_node(map_path) as Map
|
||
|
|
||
|
func _ready():
|
||
|
map.tilemap.set_occluder_origin(player)
|