LUA Camera - BoloVEVO/Kade-Engine GitHub Wiki

LUA Camera functions

Camera shaking

To do a noise camera shaking effect through LUA make sure you have your modchart.lua in your song's json folder.

This function only executes once. So consider putting these on update(elapsed) function inside your LUA file to shake your camera continuosly.

Example:

function update(elapsed)
   camGame:shake(0.005) --Some screen shake stuff bruh
    camHUD:shake(0.005)
end