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]