this works fine...
COLLISION ANY SIDE OF ANY ACTOR
///WIZARD HAT PICK UP
{collide.itemtype = strcmp(collide.name, wizhat.name);
if(collide.itemtype==0)
ChangeParent("Collide Actor", "menu"),
collide.x=-30+(menuquan*2),
collide.y=-48,
menuquan=menuquan+10, wizhat.itemown=1;}
but this doesn't
MOUSE BUTTON DOWN (LEFT)
if(hatequip==1)
ChangeParent("Event Actor", "(none)"),
x=999999999,
itemown=0, hatequip=0,
y=Man.y,wizhat.x=Man.x;
if(hatequip==0)
if(itemown==1)
ChangeParent("wizhat", "Man"),
wizhat.x=0,
wizhat.y=-11,
menuquan=menuquan-10,hatequip=1;
the second script is supossed to move the hat from your inventory (menu) to your head (Man).
Can you tell me y it doesn't work and how to fix it?