onUpdate = function(self,elapsed) if self.player.velocity.y >= 0 then self.platforms:collide(self.player) end end