diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index 469bec1..27c2e46 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -84,7 +84,8 @@ function Actor2D:autoMove() end function Actor2D:move(newx, newy) - self.world:moveActor(self, newx, newy) + local cols, colNumber + self.x, self.y, cols, colNumber = self.world:moveActor(self, newx, newy) end -- DRAW FUNCTIONS diff --git a/gamecore/modules/world/baseworld.lua b/gamecore/modules/world/baseworld.lua index 8cdce50..b6ad080 100644 --- a/gamecore/modules/world/baseworld.lua +++ b/gamecore/modules/world/baseworld.lua @@ -81,8 +81,6 @@ function BaseWorld:removeActor(actor) end function BaseWorld:moveActor(actor, x, y, filter) - actor.x = x - actor.y = y -- as the baseworld have no collision function, we return empty collision -- datas, but from the same type than bump2D will return return x, y, {}, 0