function check_visibility(){ var screenpos[3]; while(1) { vec_set(screenpos.x,my.x); if (vec_to_screen(screenpos,camera)!=0) { my.lightrange=0; }else{my.lightrange=light_range;} wait(1); } }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de