Skip to content

Commit

Permalink
Stopped automatically adding colliders when no enum is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Zaalberg committed Jun 6, 2022
1 parent 3f29d33 commit 579664f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/core/CoreGame.lua
Expand Up @@ -113,10 +113,14 @@ function goto_level(level_name, direction)
layerSprite:setCenter(0, 0)
layerSprite:setZIndex(layer.zIndex)
layerSprite:add()

gfx.sprite.addWallSprites(tilemap, LDtk.get_empty_tileIDs(level_name, "Solid", index))
layerSprites[index] = layerSprite

local solidTiles = LDtk.get_empty_tileIDs(level_name, "Solid", index)

if solidTiles then
gfx.sprite.addWallSprites(tilemap, solidTiles)
end

::continue::
end

Expand Down

0 comments on commit 579664f

Please sign in to comment.