private static bool Collided(Point Pos, Character character) { if (character != null) { for (int x = 0; x < character.charType.Size.X / Globals.TileSize; x += 1) { for (int y = 0; y < character.charType.Size.Y / Globals.TileSize; y += 1) { if (Game.World.TileList[Pos.X + x, Pos.Y + y].IsBlocked) { return(true); } } } } else { if (Game.World.TileList[Pos.X, Pos.Y].IsBlocked || GamePlay.GetCharactersInTiles(new Point(Pos.X, Pos.Y)).Count > 0) { return(true); } } return(false); }