3D Multiple levels, ramps and stairs.

E

Expertik

Guest
Hello, i have my 3d FPS, and i want create a map, where player begin on bridge and have to hold his position.
I have a script, that set obj_camera to z=0; and camera jumping... In script is also set min-z = 0; that says, camera can't be lower than z=0. But I don't know, how to set a bridge floor to solid, and stairs set also to solid. Actualy my player start always on z=0 and he can go thought stairs. I don't know what to do, so any answer is good. Thanks, if it possible, i wan't see some example codes.

For example, my stairs script

Create Event:

texture = background_get_texture(bc_stairs);
z = 0;

Draw Event:

d3d_set_lighting(false);
draw_set_color(c_white);
d3d_draw_block(x, y-32, z, x-64, y+32, z+12, texture, 1, 1)
d3d_draw_block(x, y-32, z+12, x-48, y+32, z+24, texture, 1, 1)
d3d_draw_block(x, y-32, z+24, x-32, y+32, z+36, texture, 1, 1)
d3d_draw_block(x, y-32, z+36, x-16, y+32, z+48, texture, 1, 1)
d3d_set_lighting(true);
 
E

Expertik

Guest
I tried number 25, copy some scripts to my fps, but doesn't work. Camera still can walk thought stairs, but in 3/4 of stairs it stopped camera, but not help for my problem.
 
Top