improvement: do not reset scene when teleporting
This commit is contained in:
parent
ee59bc988b
commit
fcafa9aa0f
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ function RPGWorld:teleport(area, x, y)
|
|||
self.players[1].actor.x = x * 16
|
||||
self.players[1].actor.y = y * 16
|
||||
else
|
||||
scenes.overworld(area, x, y)
|
||||
self.area = area
|
||||
self.playerx = x
|
||||
self.playery = y
|
||||
self:reset()
|
||||
collectgarbage()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue