DividingByZero
Member
Quick question - I am trying to use collision_rectangle to detect if an object is within a certain area. It works fine on the parent object (the main object). But, I also have variants of that object that are children, it doesn't seem to detect those (though I feel it should).
Am I incorrect in my assumption?
This works with 'obj_torch'
But, if I have 'obj_torch_invisible' (which is a child of 'obj_torch') it doesn't work.
Am I incorrect in my assumption?
This works with 'obj_torch'
Code:
var torch_in_room = collision_rectangle(0,0,2000,2000,obj_torch,true,true);
if ( torch_in_room == noone ) {
// Do stuff
}