G
gumilJey
Guest
So,guy's how to make the camera did not move the player (3D camera) i wrote this skripts
for create:
d3d_start()
d3d_set_lighting(true)
d3d_light_enable(1,true)
d3d_light_define_point(1,x,y-100,-50,999,c_white)
for draw:
d3d_set_projection(x+29,y-73,70, x,y,0, 0,0,1);
draw_set_color(c_white);
d3d_draw_block(x-5,y-5,0, x+5,y+5,10, -1,1,1)
d3d_set_lighting(false)
d3d_draw_floor(0,0,0, room_width,room_height,0, background_get_texture(tex),5,5)
d3d_set_lighting(true)
and for step:
if keyboard_check(vk_up) y+=5
if keyboard_check(vk_down) y-=5
if keyboard_check(vk_right) x-=5
if keyboard_check(vk_left) x+=5
d3d_light_define_point(1,x,y-100,-50,999,c_white)
for create:
d3d_start()
d3d_set_lighting(true)
d3d_light_enable(1,true)
d3d_light_define_point(1,x,y-100,-50,999,c_white)
for draw:
d3d_set_projection(x+29,y-73,70, x,y,0, 0,0,1);
draw_set_color(c_white);
d3d_draw_block(x-5,y-5,0, x+5,y+5,10, -1,1,1)
d3d_set_lighting(false)
d3d_draw_floor(0,0,0, room_width,room_height,0, background_get_texture(tex),5,5)
d3d_set_lighting(true)
and for step:
if keyboard_check(vk_up) y+=5
if keyboard_check(vk_down) y-=5
if keyboard_check(vk_right) x-=5
if keyboard_check(vk_left) x+=5
d3d_light_define_point(1,x,y-100,-50,999,c_white)