I am trying to use the return key 3 times in my program. The first time, it works fine, but after that it throws it out of wack. I am trying to make it so the user can either click a button or press the return key. When the return key gets pressed again, the style is messed up and about 5 steps get missed. How can I solve this?
Develop games in your browser. Powerful, performant & highly capable.
Can you post a screenshot of this code lines? It would be easier to understand where the issue is.
Well I have these three conditionals
nextLayer on click
keyboard on return released
addItem on click
addPayment on click
my program is kind of like a website. The first one works fine, but when I get to the second one and press enter, it seems to go through the 3rd and 1st one too. I tried to do this:
canClick1 = true
(nextLayer on click
keyboard on return released)
canClick2 = true
canClick3 = true
I thought this would work because maybe all of them were getting called at once because of the or statement, but this didn't work and the problem was still there.