Verwex / Funkin-Mic-d-Up-SC

A mod to Friday Night Funkin' called FNF: Mic'd Up, previously named EX Replayability.
Other
76 stars 110 forks source link

Question: How to make opponent play animation correctly? #115

Open AlansGames opened 2 years ago

AlansGames commented 2 years ago

I know how to, but I've tried for a long time and I'm not sure if it's the engine or myself but I've tried a bunch of different ways and it still doesn't work.

Purble11 commented 2 years ago

I have figured this out my self it would be nice if ur thankful, search for (press control + f) and type // HARDCODING FOR MILF ZOOMS! then go to a new line there and past this format and edit it

    switch (SONG.song.toLowerCase())
    {
        case 'ur-song':
            switch (curBeat)
            {
                case beat-number (to get one just get the seconds of where u want it and x it by the song bpm):
                    here do what u want
            }
    }

it should look something like this

image

AlansGames commented 2 years ago

Thank you so much! I have tried so many ways to try and make it work but nothing would work. Thank you! 😀

AlansGames commented 2 years ago

Ok so that code worked but idk why but the dad.playanim command still doesn't work. Maybe I should of put that in the title. Thank you anyway!

Purble11 commented 2 years ago

do dad.animation.play('anim name here');

AlansGames commented 2 years ago

did not work

Purble11 commented 2 years ago

u have to set the animation it in the char.hx file and here I fixed it dad.animation.play('anim name', true);

AlansGames commented 2 years ago

still nope idk why