-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help me with lua script pls :'( #11235
Comments
You can't change bgs but, you can change the images that are being used to create the bg to another set of images which make a bg. Hope this helped bc I cannot make a script since I'm not home. |
you mean i can create a assets of bg (like for character) and create an event to change it? |
Yes, and be sure to use function onCreate() to precache things and removeLuaSprite('tag', false) false makes it be added back later |
i think i understand but i just start LUA so i think im not understand |
Do you alr have the stage.lua? |
No sorry i don't know i have to do it, you can exploit me or send me a tutoriel for this please?
(If you want we can use discord)
…________________________________
De : bruh1cat ***@***.***>
Envoyé : lundi 14 novembre 2022, 20:51
À : ShadowMario/FNF-PsychEngine ***@***.***>
Cc : Noel345 ***@***.***>; Author ***@***.***>
Objet : Re: [ShadowMario/FNF-PsychEngine] help me with lua script pls :'( (Issue #11235)
i think i understand but i just start LUA so i think im not understand
Do you alr have the stage.lua?
—
Reply to this email directly, view it on GitHub<#11235 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOAGER2DSYGBFLFZFV6ZIG3WIKJ2FANCNFSM6AAAAAASABPGTA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
You know what i try to do it and i show you when i finish (if its not disturb you)
De : ***@***.***>
Envoyé le :lundi 14 novembre 2022 20:51
À : ***@***.***>
Cc : ***@***.***>; ***@***.***>
Objet :Re: [ShadowMario/FNF-PsychEngine] help me with lua script pls :'( (Issue #11235)
i think i understand but i just start LUA so i think im not understand
Do you alr have the stage.lua?
—
Reply to this email directly, view it on GitHub<#11235 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOAGER2DSYGBFLFZFV6ZIG3WIKJ2FANCNFSM6AAAAAASABPGTA>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
its possible to do like: if note2 press: then add -1 to value. |
local Stage = 0 if noteType == 'another' then |
thanks :D, |
You can put it on the ummm custom_events folder I mean make a new .lua file and paste that in and put it in custom_events folder |
yeah i understand but if its an event this be active unicaly for 1moment and nit for all the song? |
day = 0 function onCreate() function goodNoteHit(id, direction, noteType, isSustainNote) any error for you? (for me its not working) |
Well my computer is on repair so I can't really test that code myself so yeah. And addProperty() doesn't exists ectually can you tell me what exactly you're making again? Like a stage changer or something like that? |
i try doing like: i have 10 backgrounds at all |
You can do like if the day equals to 0 then And if the day equals to 1 then Idk if you understand this crappy explanation |
Yes but if i have 10 bgs, how i can do that?
Message ID: ***@***.***>
|
How i can do that?
|
then keep counting and add the numbers to each BG |
like that? local Stage = 0 function onCreate() function goodNoteHit() if noteType == 'error_taco note' then -- Event notes hooks end -- print('Event triggered: ', stage-check, value1, value2); |
okay so i test the script, i don't have error but the bg not show, i think the game can't take the PNG of bg. |
(i do something wrong?) |
I can't help rn but when I can I'll try to fix it |
okay thanks :D, |
No just one bc like I said there really isn't a way to change stages with its .json file ur just changing the images. |
okay |
i try debug the script and if you have a idee of where is the error just told me pls |
okay i try debug it myself but can't find why bg not show |
` --bg2 end function onUpdate()
end Here's and example or something |
local Stage = 0
function onCreate()
precacheImage('Stage')
precacheImage('Stage1')
precacheImage('Stage2')
precacheImage('Stage3')
makeLuaSprite('Stage', 'temp1', 0, 0)--makes the image appear in the middle of the screen
makeLuaSprite('Stage1', 'temp2', 0, 0)--makes the image appear in the middle of the screen
makeLuaSprite('Stage2', 'temp3', 0, 0)--makes the image appear in the middle of the screen
makeLuaSprite('Stage3', 'temp4', 0, 0)--makes the image appear in the middle of the screen
addLuaSprite('Stage', false)--adds the sprite made with makeLuaSprite
addLuaSprite('Stage1', true)--adds the sprite made with makeLuaSprite
addLuaSprite('Stage2', true)
addLuaSprite('Stage3', true)
setProperty('stage.x', getProperty('gf.x')+100)
end
function goodNoteHit()
if noteType == 'taco note' then
Stage = Stage + 1
end
end
if noteType == 'error_taco note' then
Stage = Stage - 1
end
function onUpdatePost()
if Stage == 1 then
addLuaSprite('Stage', true)
removeLuaSprite('Stage1', true)
removeLuaSprite('Stage2', true)
removeLuaSprite('Stage3', true)
else if Stage == 2 then
addLuaSprite('Stage1', true)
removeLuaSprite('Stage', true)
removeLuaSprite('Stage2', true)
removeLuaSprite('Stage3', true)
end
end
end
i don’t knwo why its still not working…
someone have an idee ?
|
Describe your problem here.
heya,
i want make a custome note if he press that change to the next background,
and a custom note if he press that change to the previous background,
but i don't know how do it,
i look for on any website and that not helpful.
if you know how pls respond me or DM me on discord Noel345 is back ))))#4280
thanks for who read this and for you're futur help :D
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: