diff --git a/scenes/room/states/room_entering.gd b/scenes/room/states/room_entering.gd index 00d86fb..0ce68db 100644 --- a/scenes/room/states/room_entering.gd +++ b/scenes/room/states/room_entering.gd @@ -2,6 +2,7 @@ extends RoomState func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: + print("entering room") room.player = room.player_scene.instantiate() room.add_child(room.player) room.player.global_position = room.initial_spawn diff --git a/scenes/room/states/room_playing.gd b/scenes/room/states/room_playing.gd index 8a2ed3b..ae205b9 100644 --- a/scenes/room/states/room_playing.gd +++ b/scenes/room/states/room_playing.gd @@ -1,6 +1,10 @@ extends RoomState +func _enter(_previous_state_path: String, _data: Dictionary = {}) -> void: + print("entering room gameplay") + + func _state_physics_update(delta: float) -> void: room.camera.follow_player(delta) if match_state([PLAYING]): return