C
Coder123
Guest
so i have some text that is being displayed on the screen which is this:
draw_text(96, 32, "Wood: " + string(log_count));
the text is displayed fine but when i pickup a wooden log the value dosent update.
Heres my step event:
//Picking up wood logs
var inst, ex1, ey1, ez;
inst = instance_nearest(x, y, woodlog);
if inst
{
ex1 = inst.x
ey2 = inst.y
if keyboard_check_pressed(ord('E'))
if point_distance_3d(x, y, z, ex, ey, z) < 50
{
log_count += 3;
instance_destroy(obj_WoodLog);
}
}
draw_text(96, 32, "Wood: " + string(log_count));
the text is displayed fine but when i pickup a wooden log the value dosent update.
Heres my step event:
//Picking up wood logs
var inst, ex1, ey1, ez;
inst = instance_nearest(x, y, woodlog);
if inst
{
ex1 = inst.x
ey2 = inst.y
if keyboard_check_pressed(ord('E'))
if point_distance_3d(x, y, z, ex, ey, z) < 50
{
log_count += 3;
instance_destroy(obj_WoodLog);
}
}