Adjusted menu behvariour with entity and particle movement. adjusted player entity

This commit is contained in:
lustlion
2022-02-03 06:02:06 +01:00
parent 7595ed3b90
commit d4dbc034ea
4 changed files with 25 additions and 21 deletions

View File

@@ -49,8 +49,10 @@ function Entity:CollisionMove()
end
end
function Entity:LightAdjust()
function Entity:LightAdjust(x,y)
if self.light ~= nil then
local x = x or 0
local y = y or 0
self.light.pos.x = self.pos.x
self.light.pos.y = self.pos.y
end