J
James Lin
Guest
The following code doesn't create a fist.if (action_key == true)
{
var inst = instance_create_depth(x, y, -10000, oFists);
if (Equipment_slot_one == "fists")
{
var ex, ey;
ex = instance_nearest(x, y, oEnemy).x;
ey = instance_nearest(x, y, oEnemy).y;
with (inst)
{
direction = point_direction(x, y, ex, ey);
}
}
}