hello this works but it isnt the right way but it does work
var clip_dist;
action clip_my
{
while(1)
{
if(vec_dist(my.x,camera.x) > clip_dist)
{my.flag1 = on;}
else{my.flag1 = off;}
wait(1);
}
}
function clip_it()
{
clip_dist = 1000;//clip_dist
//fog is nicer
fog_color = 1;
camera.fog_start = 0.8 * clip_dist;
camera.fog_end = 0.9 * clip_dist;
camera.noflag1 = on;
}
function main()
{
//lvl_load, etc.
clip_it();
}
i forgotten the magic word, but its better because it dont need a whileloop