adding physics object statue
This commit is contained in:
@@ -7,9 +7,13 @@ const Player = preload("res://Characters/test_player/test_player.tscn")
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
var level_1 = Level1.instantiate()
|
||||
var spawn_location = level_1.get_node("PlayerSpawnLocation")
|
||||
spawn_location.set_visible(false)
|
||||
manager.add_child(level_1)
|
||||
var new_player = Player.instantiate()
|
||||
manager.add_child(new_player)
|
||||
new_player.set_position(spawn_location.get_position())
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user