Skip to content

Commit

Permalink
fix bug from tilemapExt not placing tiles (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Jun 5, 2024
1 parent acb846c commit 4a8cad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Platformers/FlxTilemapExt/source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ class PlayState extends FlxState
_hud.add(_levelText);
}

function fallInClouds(Tile:FlxObject, Object:FlxObject):Void
function fallInClouds(tile:FlxObject, object:FlxObject):Void
{
if (FlxG.keys.anyPressed([DOWN, S]))
{
Tile.allowCollisions = NONE;
tile.allowCollisions = NONE;
}
else if (Object.y >= Tile.y)
else
{
Tile.allowCollisions = CEILING;
tile.allowCollisions = CEILING;
}
}

Expand Down

0 comments on commit 4a8cad7

Please sign in to comment.