Use Actor:canMove in Actor:move?
Posted: Fri Aug 06, 2010 3:55 pm
The following code can be found in engine.Actor:move.
Shouldn't this read like below to take advantage of any over-written Actor:canMove functions?
Code: Select all
if not force and map:checkAllEntities(x, y, "block_move", self, true) then return true end
Code: Select all
if not force and not self:canMove(x, y) then return true end