You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came up with something like shit, but it seems work
write it in onCreate() :
function opponentNoteHit(id, direction, noteType, isSustainNote)
if cameraSetTarget("dad") then
runHaxeCode([[
var shaderName = "]] .. shaderName .. [[";
game.initLuaShader(shaderName);
var shader0 = game.createRuntimeShader(shaderName);
game.camGame.setFilters([new ShaderFilter(shader0)]);
game.getLuaObject("your shader").shader = shader0;
game.camHUD.setFilters([new ShaderFilter(game.getLuaObject("your shader").shader)]);
return;
]])
end
end
function onMoveCamera(focus)
if focus == 'boyfriend' then
runHaxeCode([[
game.camGame.setFilters([]);
game.camHUD.setFilters([]);
]])
end
end
Describe your problem here.
Hello, does anyone know how to make an opoonentNoteHit function that makes a shader appear and when you stop playing the note it disappears?
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response
The text was updated successfully, but these errors were encountered: