I have this in the Create event which does create the light.
vLightID = floor(random(1000000)); d3d_light_define_point(vLightID,x,y,-64,128,c_white); d3d_light_enable(vLightID,true);
I then have this in the Step event but it doesn't follow the player, instead it just stays where it originally spawns.
d3d_light_define_point(vLightID,x,y,z-64,128,c_white);











