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 / Help Needed With Mouseclick() Commands

Author
Message
Deleted
20
Years of Service
User Offline
Joined: 26th May 2004
Location:
Posted: 17th Jul 2004 08:34
Ok. This is probably a simple problem. I want a variable to change it's value (to 1) when the left mouse-button is clicked. When the left button is clicked again it should change the variable back to 0. I have written some code to do this but it is badly flawed as the variable constantly flickers from 0 to 1 and back again before you have even released the button the first time. I was wondering if there was a way to do this?
I'm trying to avoid using a sleep command (to give the player time to release the button), and a timer may be sufficient but I've never used one and don't know how.

Totally
[img]"http://www.geocities.com/preview_ff/wedge.jpg"[/img]
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 17th Jul 2004 09:00
Hopefully this will help.




Boo!
Deleted
20
Years of Service
User Offline
Joined: 26th May 2004
Location:
Posted: 17th Jul 2004 09:09
Wow. That was exactly what I needed. Thanks alot

Totally
[img]"http://www.geocities.com/preview_ff/wedge.jpg"[/img]
Xander
21
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 17th Jul 2004 13:18
Dang, spooky, you beat me to it

Xander Moser of Bolt Software
Firewall: Your Computer's First Defense - Real Time Strategy game
[href][/href]

Login to post a reply

Server time is: 2024-09-22 17:23:39
Your offset time is: 2024-09-22 17:23:39