Hello. I am creating a program that requires an eight-directional mouse. I have seen some really good ones, but they are not what I want.
I want to be able to have a basic program like:
{0,9}→L1
{0,9}→L2
{8,9}→L3
{8,9}→L4
"hello:goodbye"→Str1
{55,55}→X
{0,0}→Y
asm(prgmMOUSEL1 would be the first X coordinate. (x1)
L2 would be the first Y coordinate. (Y1)
L3 would be the second x coordinate. (X2)
L4 would be the second Y coordinate. (Y2
Now, if the tip of the mouse sprite went within X1 and X2 and Y1 and Y2, then the first part of str1 up to the ":" character, then the word "hello" would be displayed like "Text(55,0,"hello").
If the tip of the mouse cursor went at the point of (9,9) in pixel coordinate form, then the word "goodbye" would be displayed like the basic "Text(55,0,"goodbye")".
To recap:
L1-L4 is the square for the mouse.
∟X and ∟Y would be where the x and y coordinate would be for the text command.
Str1 contains the text to put on the screen. It is separated by the ":". You could choose a different character, but that's the one I chose.
can anyone help me with this program?