diff --git a/res/project/res/scripts/MainScene/camera.lua b/res/project/res/scripts/MainScene/camera.lua index 9665d3a..3e958b9 100644 --- a/res/project/res/scripts/MainScene/camera.lua +++ b/res/project/res/scripts/MainScene/camera.lua @@ -4,7 +4,7 @@ this.on_init = function() end this.on_fixedupdate = function() - if Input.getKeyJustPressed(Input.KeyCode.Enter) then + if Input.getKeyDown(Input.KeyCode.Enter) then gotoScene('SideScene') end diff --git a/res/project/res/scripts/SideScene/camera.lua b/res/project/res/scripts/SideScene/camera.lua index 1721557..ac6e347 100644 --- a/res/project/res/scripts/SideScene/camera.lua +++ b/res/project/res/scripts/SideScene/camera.lua @@ -4,7 +4,7 @@ this.on_init = function() end this.on_fixedupdate = function() - if Input.getKeyJustPressed(Input.KeyCode.Enter) then + if Input.getKeyDown(Input.KeyCode.Enter) then gotoScene('MainScene') end