diff --git a/examples/gameplay/plateform/actors/player.lua b/examples/gameplay/plateform/actors/player.lua index 0b6010d..86f7a30 100644 --- a/examples/gameplay/plateform/actors/player.lua +++ b/examples/gameplay/plateform/actors/player.lua @@ -26,6 +26,7 @@ function Player:update(dt) if self.keys["start"].isPressed then self.world:switchActivity() + self.assets:switchActivity() self.scene:flushKeys() end diff --git a/examples/gameplay/plateform/init.lua b/examples/gameplay/plateform/init.lua index c72ccfa..bf59362 100644 --- a/examples/gameplay/plateform/init.lua +++ b/examples/gameplay/plateform/init.lua @@ -41,6 +41,7 @@ end function Plateformer:update(dt) if (self.world.isActive == false) and self.sources[1].keys["start"].isPressed then self.world:switchActivity() + self.assets:switchActivity() end end