Skip to content
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

Can you tween note scale? #16379

Open
Slimquickhunt opened this issue Feb 26, 2025 · 4 comments
Open

Can you tween note scale? #16379

Slimquickhunt opened this issue Feb 26, 2025 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@Slimquickhunt
Copy link

Describe your problem here.

trying to do a modchart similar to supershaggy where the arrows go further from the camera and closer to the camera and kind of orbit eachother. anyway idk if tweening note scale is possible. also lil bonus thing: how would i change which strum is in front of the other?

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.

I'm using this branch thing of psych: https://gamebanana.com/mods/468741

@Slimquickhunt Slimquickhunt added the help wanted Extra attention is needed label Feb 26, 2025
@Slimquickhunt
Copy link
Author

if it wasn't obvious i'm reffering to the seperate player and opponent strums in the 2nd question

@KELOTOMU
Copy link

setObjectOrder

@Slimquickhunt
Copy link
Author

setObjectOrder

okay i tried this:

enabled = 1
revtime = 5
Hrevtime = revtime / 2
function onStepHit()
if curStep == 128 then

noteTweenX('ZA', 0, 710, revtime, 'cubeInOut')
noteTweenX('ZB', 1, 810, revtime, 'cubeInOut')
noteTweenX('ZC', 2, 910, revtime, 'cubeInOut')
noteTweenX('ZD', 3, 1010, revtime, 'cubeInOut')
noteTweenX('ZF', 4, 1110, revtime, 'cubeInOut')

noteTweenX('VA', 5, 75, revtime, 'cubeInOut')
noteTweenX('VB', 6, 175, revtime, 'cubeInOut')
noteTweenX('VC', 7, 275, revtime, 'cubeInOut')
noteTweenX('VD', 8, 375, revtime, 'cubeInOut')
noteTweenX('VF', 9, 475, revtime, 'cubeInOut')

noteTweenAlpha('P1Alpha1', 0, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha2', 1, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha3', 2, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha4', 3, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha5', 4, 0.3, Hrevtime, 'cubeIn')
end
if curStep == 1024 then
revtime = 2.5
end
if curStep == 1280 then
revtime = 5
end
if curStep == 1408 then
revtime = 10
end
if curStep == 1920 then
revtime = 2
end
end
function onTweenCompleted(tag)
if tag == 'ZA' and enabled == 1 then
noteTweenX('FA', 5, 710, revtime, 'cubeInOut')
noteTweenX('FB', 6, 810, revtime, 'cubeInOut')
noteTweenX('FC', 7, 910, revtime, 'cubeInOut')
noteTweenX('FD', 8, 1010, revtime, 'cubeInOut')
noteTweenX('FF', 9, 1110, revtime, 'cubeInOut')

noteTweenX('GA', 0, 75, revtime, 'cubeInOut')
noteTweenX('GB', 1, 175, revtime, 'cubeInOut')
noteTweenX('GC', 2, 275, revtime, 'cubeInOut')
noteTweenX('GD', 3, 375, revtime, 'cubeInOut')
noteTweenX('GF', 4, 475, revtime, 'cubeInOut')
Hrevtime = revtime / 2
setObjectOrder('opponentStrums', 20, 'uiGroup')
setObjectOrder('playerStrums', 200, 'uiGroup')

end
if tag == 'P1Alpha1' and enabled == 1 then
noteTweenAlpha('P2Alpha1', 0, 1, Hrevtime, 'cubeOut')
noteTweenAlpha('P2Alpha2', 1, 1, Hrevtime, 'cubeOut')
noteTweenAlpha('P2Alpha3', 2, 1, Hrevtime, 'cubeOut')
noteTweenAlpha('P2Alpha4', 3, 1, Hrevtime, 'cubeOut')
noteTweenAlpha('P2Alpha5', 4, 1, Hrevtime, 'cubeOut')
end
if tag == 'P2Alpha1' and enabled == 1 then
noteTweenAlpha('P1Alpha1', 0, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha2', 1, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha3', 2, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha4', 3, 0.3, Hrevtime, 'cubeIn')
noteTweenAlpha('P1Alpha5', 4, 0.3, Hrevtime, 'cubeIn')
end
if tag == 'FA' and enabled == 1 then
noteTweenX('ZA', 0, 710, revtime, 'cubeInOut')
noteTweenX('ZB', 1, 810, revtime, 'cubeInOut')
noteTweenX('ZC', 2, 910, revtime, 'cubeInOut')
noteTweenX('ZD', 3, 1010, revtime, 'cubeInOut')
noteTweenX('ZF', 4, 1110, revtime, 'cubeInOut')

noteTweenX('VA', 5, 75, revtime, 'cubeInOut')
noteTweenX('VB', 6, 175, revtime, 'cubeInOut')
noteTweenX('VC', 7, 275, revtime, 'cubeInOut')
noteTweenX('VD', 8, 375, revtime, 'cubeInOut')
noteTweenX('VF', 9, 475, revtime, 'cubeInOut')
Hrevtime = revtime / 2
setObjectOrder('opponentStrums', 200, 'uiGroup')
setObjectOrder('playerStrums', 20, 'uiGroup')

end
end

for some reason this just creates a clone of the strums in the background?
very strange i'll try dif combinations of things to see if i can get this working.

@Slimquickhunt
Copy link
Author

sorry i'm bad at formatting on here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants