C
Cheezeh3d
Guest
Hello people.
So I have been working on a school project for a while and I hit a snag with HTML5 that I can't seem to fix. I have a login screen with simple homemade text boxes, but to type in the text box you need to click on it. I've troubleshooted a lot, so I know this is the issue.
I have it set so when the mouse enters the text box, it sets a variable called email_hover to equal true. Then, in the step event below, it checks if mb_left was pressed. If that happens, then it will deactivate the other text box I have on the screen, activate the current text box, and set the keyboard_string to equal a variable called email_text which will then draw the text in a draw event on top of the text box (this part isn't shown here). Here is the code for my mouse.
I did some troubleshooting and found that it tracks the mouse entering the text box because email_hover will equal true, but it won't track that mb_left is being pressed. This all works with a windows and mac build, but I can't get it to work when I build to html5. I did some research and I couldn't find anyone else having this issue. I thought about changing the code to something a little more complicated, but I really don't want to do that if I don't have to. Any thoughts?
So I have been working on a school project for a while and I hit a snag with HTML5 that I can't seem to fix. I have a login screen with simple homemade text boxes, but to type in the text box you need to click on it. I've troubleshooted a lot, so I know this is the issue.
I have it set so when the mouse enters the text box, it sets a variable called email_hover to equal true. Then, in the step event below, it checks if mb_left was pressed. If that happens, then it will deactivate the other text box I have on the screen, activate the current text box, and set the keyboard_string to equal a variable called email_text which will then draw the text in a draw event on top of the text box (this part isn't shown here). Here is the code for my mouse.
Code:
if(email_hover == true){
if(mouse_check_button_pressed(mb_left)){
obj_password_text_box.password_selected = false;
email_selected = true;
keyboard_string = email_text;
}
}