Hi, i'm making a camera that dont run away from blocks, just decrease their alpha to 50%.
This is the code i'm using, but i dont think the trace is well doned.
any help is apreciated, then i may share the perfect code here for users to use it!
code:-------------
vec_set(temporario,camera.x); //copy camera xyz to temporario
distanciaaoplayer = vec_dist(camera.x,my.x); //see the distance between the camera and the player and stores it in distanciaaoplayer
trace_mode = ignore_passable + ignore_me; //traces a ray from the camera to the player and see if he hits on non passable block
while (trace(temporario,distanciaaoplayer) !=0) {you.alpha=50;} // if the ray hits a block, that block must turn transparent
------------------
-------------------------------
Last edited by NMS; 08/30/05 09:35.