FuncIt/kristofers/movementSystem0.0.3/code/global.gd
2021-10-30 18:22:34 +03:00

16 lines
434 B
GDScript

extends Node
var player_master = null
var ui = null
var alive_players = []
func instance_node_at_location(node: Object, parent: Object, location: Vector2) -> Object:
var node_instance = instance_node(node, parent)
node_instance.global_position = location
return node_instance
func instance_node(node: Object, parent: Object) -> Object:
var node_instance = node.instance()
parent.add_child(node_instance)
return node_instance