N
nuhlon
Guest
i was making a game and there was a problem with my begin step code, i dont know whats wrong with it.
if (hp <= 0)
{
with (instance_create_layer(x,y,layer,oDead))
{
direction = other.hitfrom;
hsp = lengthdir_x(3,direction);
vsp = lengthdir_y(3,direction)-2;
if (sign(hsp != 0) image_xscale = sign(hsp); <---- problem
}
instance_destroy();
}
if (hp <= 0)
{
with (instance_create_layer(x,y,layer,oDead))
{
direction = other.hitfrom;
hsp = lengthdir_x(3,direction);
vsp = lengthdir_y(3,direction)-2;
if (sign(hsp != 0) image_xscale = sign(hsp); <---- problem
}
instance_destroy();
}