Page 1 of 1

Camera Help

Posted: Wed Aug 13, 2025 3:42 pm
by marioSuper21
Can the camera move if Misc.pause() is enabled? For example, I want to move the camera up, but nothing happens.

Re: Camera Help

Posted: Wed Aug 13, 2025 5:04 pm
by deice
please post the full lua code you're using. it's not easy to help unless we know exactly how you're trying to move the camera

Re: Camera Help

Posted: Wed Aug 13, 2025 5:53 pm
by marioSuper21
Here is the code:

Code: Select all

local handycam = require("handycam")

local vSpeed = 0
local vEase = 0.01

function onTick()
    Misc.pause(true)
end

function onDraw()
    local cam = handycam[1]

    vSpeed = vSpeed + vEase

    cam.y = cam.y - vSpeed
    Text.print(cam.y, 100, 100)
end

Re: Camera Help

Posted: Thu Aug 14, 2025 6:50 am
by deice
marioSuper21 wrote:
Wed Aug 13, 2025 5:53 pm
Here is the code:
you shouldn't wait for the drawing queue when calling Misc.pause() from an event like onTick, but other than that the code doesn't have any issues
if you remove the argument from Misc.pause() and the camera still refuses to move, it's possible another library you have loaded might be interfering