Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Question about mouseclick and inkey$()

Author
Message
fhtughryf
16
Years of Service
User Offline
Joined: 1st Jul 2008
Location:
Posted: 2nd Aug 2008 22:56
I notice if a player pushes a button on the keyboard or uses the mouse to click on something in the 2D game world that it's impossible to only register the action as being a single occurence.

Let me clarify. Lets say I if want the player to have the ability to select an item from the screen and I grab the mousex and mousey coords from the screen only after the mouseclick() is true. But instead of it registering as a single mouse click it will register as multiple mouseclicks because the player might hold down on the mouse button maybe for more then a second.

How do I fix this? I also have the same problem with inkey$()!

I tried to work this out myself but the solutiuon is fleeting for me hmmm.
fhtughryf
16
Years of Service
User Offline
Joined: 1st Jul 2008
Location:
Posted: 2nd Aug 2008 23:21
please disregard this question. a few threads below my question and somebody had a similar problem.

Login to post a reply

Server time is: 2024-11-25 19:35:55
Your offset time is: 2024-11-25 19:35:55