Hello,
thank you for taking time to answer my question. So just a quick explanation about a nature of a project, I’m remaking this flash website : http://wordtamer.co.uk/ to Phaser. You will probably need to view it in Firefox, as Chrome won’t let me run http site in flash…
It’s a funfair themed website , with a paralax home screen, that launches individual funfair games, that serves as selectors for some words, that will be a basis for creative writing exercise later.
The home screen has a text based menu that loads some other sections of the site as well:
Your suggested approach is I guess fine in general, however when you get to nitty gritty details, that’s when the issues occurr.
So for example, to put mouse events on text, you would have to put them on a ENTIRE textfield rigtht?
but then… how do you know which word was clicked? Or even how do you show the rollover states on individual menu items?
So then you have to break it down to inidivudual text fields + dividers, but then you have to manage sizing, event handling and alignment and spacing of 11 separate textfields (6 menu items plus 5 dividers) , which could get complicated…
So much easier option would be to use scene.add.dom and have a div with the menu prebuilt, and phaser sync it’s position with canvas… However, add.dom command no longer exists , well at least not in the current build?
I could still have it in div DOM elements placed on the top of the canvas, and move/resize/sync its position with the canvas… BUT, then, how do I sent these commands to phaser?