You can save this cartridge and use it's functions freely as you wish, editing to your own needs.
The basic idea is to keep all of your text elements in a table so you can keep up with them.
Then keep up with the state of the mouse.
Then check if the mouse is within the boundaries of any of the text elements, if it is then change that element's "over" variable to true.
Then you can just do whatever if(text_element.over==true) or if the mouse button has been pressed or released AND the text element's over is true.
[Please log in to post a comment]