Again, I didn't make a tutorial (but I might), but you can use the D3D commands in Game maker in 2d mode. Plot this into the draw event and see what happens when you place it in an empty room:
direction += 2;
d3d_transform_add_rotation_z(direction);
d3d_transform_add_translation(x,y,0);
draw_line(20,20,120,120);
d3d_transform_set_identity();
Viola! And no need to use lengthdir_x and stupid crap.
Other things in d3d can be used in 2d mode also. Fog is a useful one.
Just showing something many people don't know.