Skip to content

Commit

Permalink
Merge pull request #1 from Cheeseness/main
Browse files Browse the repository at this point in the history
Fixed checkpoints and bridges having bad node paths to tilemap.
  • Loading branch information
Ancocodet authored Jun 25, 2023
2 parents 198e952 + 3964424 commit a9106ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/activateables/bridge.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends "res://scripts/activatable.gd"
@export var end_tile: Vector2

@export var bridge_tile: Vector2 = Vector2(1, 5)
@onready var tile_map = $TileMap
@onready var tile_map = $"../../TileMap"

func activate():
for i in range(end_tile.x - start_tile.x):
Expand Down
2 changes: 1 addition & 1 deletion scripts/checkpoint.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class_name Checkpoint extends Area2D

@export var id = 1
@export var checked_atlas = Vector2(3, 1)
@onready var tilemap = $"../TileMap"
@onready var tilemap = $"../../TileMap"

var checked = false

Expand Down

0 comments on commit a9106ef

Please sign in to comment.