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())
|
||||
|
||||
|
||||
|
||||
|
||||
|
11
Game Manager/player_spawn_location.tscn
Normal file
11
Game Manager/player_spawn_location.tscn
Normal file
@@ -0,0 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bfv4b6j4eunqj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cgtkkroa583fo" path="res://TileSets/Stuff.png" id="1_3afh2"]
|
||||
|
||||
[node name="PlayerSpawnLocation" type="Node2D"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(3, 3)
|
||||
texture = ExtResource("1_3afh2")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 42, 5, 6)
|
Reference in New Issue
Block a user