Camera Help
Posted: Wed Aug 13, 2025 3:42 pm
Can the camera move if Misc.pause() is enabled? For example, I want to move the camera up, but nothing happens.
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
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