Issue with button alpha?

so I’m trying to get my buttons to fade in at a given time, then when CLICKED, fade out, wait until the fade out has reached '0' for 'all' buttons, then i want the button to do what it normally does which is change scenes. the above is the problem i’m having.

the code i’m looking at is in 'TitleScene.js', line{s} : '103-142', '265-283' & '344-360',

the direct link to 'TitleScene.js', is : https://thundros.github.io/menu-system-doosan/src/Scenes/TitleScene.js

the direct link to 'Button.js', is : https://thundros.github.io/menu-system-doosan/src/Objects/Button.js

the direct link to the 'demo', is : https://thundros.github.io/menu-system-doosan/

Any help as always, is GREATLY appreciated!

Are you stepping through the code?

Most of the tween targets are undefined.

Console log of tween config arguments

How are they undefined? what the?

I think this must be a mistake:

how?

Maybe not, it just looked unusual. this.__fadeInMenu() is the one passing undefined targets.

TitleScene has two __fadeOutMenu() methods (duplicate names).

Stepping through the code should help with debugging.

so I almost have it working with my demo. What am I doing wrong here?

For some reason, it is only unlocking the 1st button 'Play' when the alpha is = to '1.0'. It should be unlocking all 3 buttons. Then when all 3 buttons are unlocked, it should activate the fadeout then after that, switch scenes.

Here is the direct link to : 'Button.js' :

https://thundros.github.io/menu-system-doosan/src/Objects/Button.js

See line{s} '63-79' in : 'Button.js'

Here is the direct link to : 'TitleScene.js' :

https://thundros.github.io/menu-system-doosan/src/Scenes/TitleScene.js

See line{s} '230-287' & '337-353', in : 'TitleScene.js'

Here is the direct link to the demo :

https://thundros.github.io/menu-system-doosan/

Any help as always is GREATLY appreciated & MERRY CHRISTMAS! <3