var am = random_range(2,9)
Blood(dir,am);
for (i = 0; i < am; i ++)
{
bl = instance_create(x,y,Obj_Blood);
bl.dir = dir
}
When the script is run, I want to transfer multiple variables across from the object to the script. It works if I use Blood(dir);
but not if I add am
. How can I use both variables in the script?