1 (edited by nusaw316 2022-12-27 21:48:44)

Topic: Use a button press to select Alternative Costume

Hi again,

I was able to create an alternate button in the Input Options on the Global Editor.

How would I be able to use this alternative button in the Character Select Screen to select the Alternative Costume for the selected character?

(My coding skills are still in the beginner stage)

Share

Thumbs up Thumbs down

Re: Use a button press to select Alternative Costume

100% custom code is needed.
I'll post some code I use for this later.

Share

Thumbs up +4 Thumbs down

Re: Use a button press to select Alternative Costume

Awesome, looking forward to it.

Share

Thumbs up Thumbs down

Re: Use a button press to select Alternative Costume

This code should get you started.

        //Place this code in DoFixedUpdate
        if (player1CurrentInputs != null)
        {
            foreach (KeyValuePair<InputReferences, InputEvents> pair in player1CurrentInputs)
            {
                if (pair.Key.inputType == InputType.Button && pair.Key.engineRelatedButton == ButtonPress.Button1)
                {

                }
            }
        }

Share

Thumbs up +1 Thumbs down