Hi.
I'm trying to make something pretty nice for my game... letting the player choose which cursor they want to see in the menus. For that to happen, I made a new window and scene as simple as the GameEnd one. It is a rectangular blank window with 3 commands. The commands are shown in text form.
this.addCommand("AY", 'CM0');this.addCommand("LMAO", 'CM1');I want to know how to change that so instead of showing text, it'll show the cursor they want. So basically I want sprites as commands.
I tried this:
this.addCommand(this.CM0(), 'CM0');this.addCommand(this.CM1(), 'CM1');Adding the new methods that would show sprites. But it didn't work either.
I'm gonna keep trying but I wanted to post this here because perhaps what I want is impossible the way I'm doing it.
Thanks.
EDIT: A solution for now will be leaving the commands empty like this: this.addCommand("", 'CM0');
And just adding the sprites in the initialize of the window.
I'm trying to make something pretty nice for my game... letting the player choose which cursor they want to see in the menus. For that to happen, I made a new window and scene as simple as the GameEnd one. It is a rectangular blank window with 3 commands. The commands are shown in text form.
this.addCommand("AY", 'CM0');this.addCommand("LMAO", 'CM1');I want to know how to change that so instead of showing text, it'll show the cursor they want. So basically I want sprites as commands.
I tried this:
this.addCommand(this.CM0(), 'CM0');this.addCommand(this.CM1(), 'CM1');Adding the new methods that would show sprites. But it didn't work either.
I'm gonna keep trying but I wanted to post this here because perhaps what I want is impossible the way I'm doing it.
Thanks.
EDIT: A solution for now will be leaving the commands empty like this: this.addCommand("", 'CM0');
And just adding the sprites in the initialize of the window.