ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.15k stars 2.21k forks source link

Fading problems #14580

Closed SpiffyisntCool closed 3 months ago

SpiffyisntCool commented 6 months ago

Describe your problem here.

so i tried fading in the game back in with "cameraFade('camGame', '000000', 3, true)" but it only fades it to black, does the newest engine have a different command?

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

JHAM25 commented 6 months ago

Intenta con doTweenAlpha('camara', 'camGame', 0.5, 3) Creo que cameraFade es para un color

SpiffyisntCool commented 6 months ago

Intenta con doTweenAlpha('camara', 'camGame', 0.5, 3) Creo que cameraFade es para un color

it kind of only fades in half of the game instead of all of it

JHAM25 commented 6 months ago

Si quieres que se desvanezca por completo pon el 0.5 en 0

SpiffyisntCool commented 6 months ago

Si quieres que se desvanezca por completo pon el 0.5 en 0

doTweenAlpha('camera', 'camGame', 0, 3) so i changed the .5 to 0 and it fade in halfway then faded out

JHAM25 commented 6 months ago

Nose si eso era lo que querías hacer o explica que resultado querías

SpiffyisntCool commented 6 months ago

Nose si eso era lo que querías hacer o explica que resultado querías

so the song starts off as a black screen and i wanted to fade all the colors back in which it only fades in halfway

SpiffyisntCool commented 6 months ago

im trying to put aethos on the latest version of psych engine but the first event is cameraFade('camGame', '000000', 3, true) which tries to fade in the game when it started off as a black screen but in this version it just fades it for a bit and fades out

JHAM25 commented 6 months ago

Algo asi?

https://github.com/ShadowMario/FNF-PsychEngine/assets/108441263/76f7b77d-b30b-4174-a02e-404c7ea12c4c

SpiffyisntCool commented 6 months ago

yeah i need something like that but heres what happends at my end

https://github.com/ShadowMario/FNF-PsychEngine/assets/107529060/a8f2c9c3-8b86-4081-8370-5061a40e6821

SpiffyisntCool commented 6 months ago

heres the json if you want to look at it aethos.json

JHAM25 commented 6 months ago

Pon este: doTweenAlpha('camara', 'camGame', 1, 3)

SpiffyisntCool commented 6 months ago

just makes the game black

JHAM25 commented 6 months ago

No entiendo por qué se pone negro intenta recargar la canción

JHAM25 commented 6 months ago

O prueba con esto:

function onCreate() makeLuaSprite('efecto', '', -10, -10) makeGraphic('efecto', 1400, 800, '000000') addLuaSprite('efecto', false) setObjectCamera('efecto', 'camOther') end function onStepHit() if curStep == 96 then doTweenAlpha('efecto', 'efecto', 0, 3) end end

SpiffyisntCool commented 6 months ago

would i just put all of this on one event or multiple?

JHAM25 commented 6 months ago

Supongo que en un evento

SpiffyisntCool commented 6 months ago

image i tried doing this and nothing happen, im not really good at this coding stuff :/

JHAM25 commented 6 months ago

a perdon por no explicar bien tienes que crear un archivo.lua y pegar el código hay Screenshot_2024-05-03-20-47-27-896_com rhmsoft code

SpiffyisntCool commented 6 months ago

image ok ive pasted the code in here i just dont know how to export it to a lua file

JHAM25 commented 6 months ago

Puedes importar tu carpeta a visual code, vas a data/'tu canción" presionas click derecho, presionas new file y pones tu nombre y al final .lua