mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Re-Opened the Minus World
Not sure how this bug happened since it worked before. This adds a check for Brick Blocks. If its parent TileMap collision is disabled, the Brick Blocks' collision is also disabled. This allows the user to enter the Minus World as it would be blocked off otherwise.
This commit is contained in:
@@ -1786,6 +1786,7 @@ func _ready() -> void:
|
||||
tile_map.set_cell(i, -1)
|
||||
var node = BRICK_BLOCK.instantiate()
|
||||
node.global_position = (i * Vector2i(16, 16) + Vector2i(8, 8)) + Vector2i(tile_map.global_position)
|
||||
node.get_node(\"Collision\").disabled = !tile_map.collision_enabled
|
||||
add_child(node)
|
||||
"
|
||||
|
||||
|
Reference in New Issue
Block a user