From 236184ce0cc287275c34ac0e6c79d6c61e71146a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 30 May 2019 13:56:14 +0200 Subject: [PATCH] example/plateformer: also pause asset animation --- examples/gameplay/plateform/actors/player.lua | 1 + examples/gameplay/plateform/init.lua | 1 + 2 files changed, 2 insertions(+) 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