so I’m trying to finish off my button menu system which is here :
https://thundros.github.io/menu-system-doosan/
& for some reason even though 'this.button'
is a sprite, I’m still getting the error : 'Uncaught TypeError : Cannot read property 'pointerdown' of undefined'
in the code :
https://thundros.github.io/menu-system-doosan/src/Scenes/TitleScene.js
Line{s} : '221-236'
The button is created with this class :
https://thundros.github.io/menu-system-doosan/src/Objects/Button.js
As you can see, the 'CreateButton ( )'
function returns 'this.button'
which is a sprite, which should work with : '.on ( )'
basically, when clicking the pointer down on the button, it should fade out all the buttons at once with different fade values until fully transparent. after, it should switch scenes to whichever button gets clicked on.
Any help like always is GREATLY appreciated!