void toggle_switch(){ while(key_space){ wait(1); } //turn off switch here } void main(){ ... on_space = toggle_switch; ... }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de