I'd like to have a Lua Cutscenes zoom on the player, then dezoom (the lua cutscene trigger is placed on the player's spawnpoint of the first room of the map, so that when you enter the map, the cutscene activates automatically). I know (I think) how to zoom and dezoom, but it still zooms in another place, to the bottom right of the player for some reason
I didn't manage to do it. If someone knows, a little help would be great 🙂
function onBegin(room)
disableMovement()
-- Gets player position
local player_pos = player.Position
-- Zoom in at the start of the level and zooms out in 4 seconds, after 2 seconds of being zoomed in
engine.Scene:ZoomSnap(player_pos, 3)
wait(2)
coroutine.yield(engine.Scene:ZoomBack(4))
end

