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

how do i make the opponent strum line have a different skin from the player? #6769

Closed
Fablisothebottle opened this issue Mar 11, 2022 · 44 comments
Labels
question Further information is requested

Comments

@Fablisothebottle
Copy link

What is your question?

Im trying to make something like something like bob and bosip where the opponent has a different note skin where the player has the default skin
unknown
.
heres what i mean.

@Fablisothebottle Fablisothebottle added the question Further information is requested label Mar 11, 2022
@AcePlayzGamesYT
Copy link

edit the NOTES_assets file to your png you want and you will have to figure out what one is the opponent and which one is the player side

@Fablisothebottle
Copy link
Author

uhh what

@AcePlayzGamesYT
Copy link

https://www.dotpdn.com/files/paint.net.4.3.10.install.anycpu.web.zip for editing the image and
image
for the location of it

@Fablisothebottle
Copy link
Author

i already have the skin i want.

@Fablisothebottle
Copy link
Author

i just want to know how to get it working

@AcePlayzGamesYT
Copy link

make a copy of the note assets you have name it whatever you want but it ends in _assets and then go into your song press 7 go to the songs tab now where it says note texture enter the name of your note but make sure you include the _assets in the end

@Fablisothebottle
Copy link
Author

but that changes both of them. i only want the opponents arrows to be different

@Fablisothebottle
Copy link
Author

and for bf's arrows to be normal

@AcePlayzGamesYT
Copy link

ill have to see
ill reply later

@Fablisothebottle
Copy link
Author

k

@AcePlayzGamesYT
Copy link

i will see in my psych

@Fablisothebottle
Copy link
Author

ight

@AcePlayzGamesYT
Copy link

ok so with your note assets edit it and you will have to figure out the one that is the opponent arrow and which one is bf arrows
see if that works

@Fablisothebottle
Copy link
Author

which hx do i go for that?

@AcePlayzGamesYT
Copy link

its not
i think its still the note assets png file

@Fablisothebottle
Copy link
Author

i dont think you understand.

@Fablisothebottle
Copy link
Author

look at the image on my issue.

@AcePlayzGamesYT
Copy link

ok
ill look at notes hx
and ill tell you if i find anything

@Fablisothebottle
Copy link
Author

ok.

@AcePlayzGamesYT
Copy link

yeah idk

@Fablisothebottle
Copy link
Author

ok ):

@cherryiguess
Copy link

there are already many discussions about this, just search about it

@Fablisothebottle
Copy link
Author

all that i found is about kade engine.

@AcePlayzGamesYT
Copy link

@AcePlayzGamesYT
Copy link

you could look at that and change it
or ctrl f in playstate and find the note textures if its in it

@Fablisothebottle
Copy link
Author

image
so replace this here?

@AcePlayzGamesYT
Copy link

i think so

@Fablisothebottle
Copy link
Author

ight ill make a backup incase it breaks it.

@AcePlayzGamesYT
Copy link

pretty sure replace with the name of your note asset png name

@AcePlayzGamesYT
Copy link

if you need to compile and you dont know how send it to me and i will compile it

@Fablisothebottle
Copy link
Author

i got this and idk what it means
image

@AcePlayzGamesYT
Copy link

ok

@AcePlayzGamesYT
Copy link

hold on

@Fablisothebottle
Copy link
Author

i think theres an error with this line
image

@AcePlayzGamesYT
Copy link

for me line 3986 is //}else{

@Fablisothebottle
Copy link
Author

image
its maybe this?

@AcePlayzGamesYT
Copy link

is there not and end } after the {

@AcePlayzGamesYT
Copy link

brb

@Fablisothebottle
Copy link
Author

it says the same thing

@AcePlayzGamesYT
Copy link

well
is there not and end } after the {

@Fablisothebottle
Copy link
Author

image
?

@AcePlayzGamesYT
Copy link

i gotta eat
bye for now i hope you figure it out

@Fablisothebottle
Copy link
Author

ok ):

@lemz1
Copy link

lemz1 commented Mar 12, 2022

you can change the note skin via lua just put this lua script in the characters folder (the folder with the character.json file) named yourcharacter.lua

strums = nil
characterBool = false
both = false
function onCreatePost()

    if getProperty('dad.curCharacter') == 'yourcharacter' then
        strums = 'opponent'
        characterBool = false
    elseif getProperty('boyfriend.curCharacter') == 'yourcharacter' then
        strums = 'player'
        characterBool = true
    end
    if getProperty('boyfriend.curCharacter') == 'yourcharacter' and getProperty('dad.curCharacter') == 'yourcharacter' then
        both = true
    end

    for i=0,3 do
        if not both then
            setPropertyFromGroup(strums..'Strums', i, 'texture', 'yourNote_assets')
        else
            setPropertyFromGroup('opponentStrums', i, 'texture', 'yourNote_assets')
            setPropertyFromGroup('playerStrums', i, 'texture', 'yourNote_assets')
        end
    end

    for i=0,getProperty('unspawnNotes.length')-1 do
        if not both then
            if getPropertyFromGroup('unspawnNotes', i, 'mustPress') == characterBool then
                setPropertyFromGroup('unspawnNotes', i, 'texture', 'yourNote_assets')
            end
        else
            setPropertyFromGroup('unspawnNotes', i, 'texture', 'yourNote_assets')
        end
    end

end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants