• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows how to make the 3d camera did not move the player

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)
 
Top