ok, this script is to check for a collision with a certain enemy. Each enemy has a parent of objEnemyBasic, used when calling something in another script.
//collision for Ghost1
if place_meeting(x,y+vspeed,argument6)
{
if vspeed > 0 && argument6.y > 8
{
with (argument6)
{
//death animation
dead = true;
speed = 0;
image_speed = argument7;
}
}
else if argument6.dead = false
{
instance_destroy();
}
}
I'd be able to answer your question real fast, most likely, but I don't have a clue how anything else is set up.
what font is this? its hard to read so small.
I was thinking the same thing, bob.
Are you passing objEnemyBasic as the 7th argument? because if you are that will happen.
remember, instead of putting an object's name into that argument, you should put it's reference/id instead. I beleive place_meeting returns the objectID that it is meeting with. If not, figure out which function does, and use that as the argument to the with() statement.else if (argument6.dead == false)
{ with (argument6) { instance_destroy(); } }That sould fix things up a bit.try with (other) instead of with (argument6)
melee-master helped me fix it but,
@mailaika: if I do that, then I would destroy ANTYHING I land on, even floors, as this is an editable engine, hence the arguments. I know the confusion is my fault as I didn't elaborate more but oh well, Its fixed now.