var mouse_activated = 0; ... if(mouse_left && !mouse_activated){ mouse_activated = 1;//activate the switch //The rest of your code here: } if(!mouse_left && mouse_activated){ //your on release code here //mouse_activated = 0;//reset te switch }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de