kokomonkey
Member
my game wont load up, but gamemaker wont state the reason behind it, so im wondering if it could be do to my most recent script, and if it is can you help me out? /: also oenemyd is my dead enemies name.
Code:
if (hp <= 0)
{
with(instance_create_layer(x,y,layer,oenemyd));
{
direction = other.hitfrom;
hsp = lengthdir_x(3,direction);
vsp = lengthdir_y(3,direction)-2;
if (sign(hsp) != 0) image_xscale = sign(hsp);
}
instance_destroy();
}