U
Ufy
Guest
So here's the error:
Here's the code that seems to cause the error:
Here's what the oBulletFriend object code looks like:
How do I fix this error?
Code:
Unable to find any instnace for object index ‘100080’
at gml_Object_oWaddleFriend_Step_0 (line 111)
bullet.creator = id;
Code:
if(target.x > x) {
bullet = instance_create_layer(x+4, y+10, "bullet", oBulletFriend);
bullet.creator = id;
} else {
bullet = instance_create_layer(x-4, y+10, "bullet", oBulletFriend);
bullet.creator = id;
}
Here's what the oBulletFriend object code looks like:
Code:
creator = noone
if(creator!=noone) {
direction = point_direction(x,y, creator.target.x, creator.target.y);
speed = 10;
} else {
instance_destroy()
}