D3d set projection

Explanation
This function sets the projection within the built-in 3D world. Here is an example for a camera object.

Create event: zdir=-45;

EndStep event: CamX=x+lengthdir_x(64,image_angle); CamY=y+lengthdir_y(64,image_angle); CamZ=z+lengthdir_y(64,zdir); //Object_Name is the object the camera follows. x=Object_Name.x; y=Object_Name.y;

Draw event: d3d_set_projection(CamX,CamY,CamZ,x,y,0,0,0,1); If there are any objects with drawing problems, make sure that the camera is the first object of the room. Or draw them in the camera object's draw event.