objectid = collision_rectangle(xpos,ypos,xpos+45,ypos+45,all,true,true) // Get & save D # of the object
// Determine what type of object it is
switch(object_get_name(objectid)) // I need something to put HERE that will return the object name of an instance
{
case 'block1': {
show_message('block1')
newtype = 1;
break
}
default: {
//show_message('Could not return TYPE')
newtype = -1;
break
}
}
I must be missing something. How do I get the object name from a specific instance ID. I'm sure it's a simple function but I can't seem to find it.











