Displacer = Fill:extend{ fill = {0, 255, 255}, visible = false, onUpdate = function(self, dt) self.visible = DEBUG and the.console.visible end, onCollide = function(self, other, xOl, yOl) if other == the.player then --sanity check self:displace(other) end end } MaybeDisplacer = Fill:extend{ fill = {0, 128, 255}, visible = false, onUpdate = function(self, dt) self.visible = DEBUG and the.console.visible end, onCollide = function(self, other, xOl, yOl) --print('col') if the.player.canMove then self:displace(other) end end }