I have the following piece of code which works in one part of my game without regard to the masks of my objects (I use Precise(Slow) on most of them):
// Test collision with all objects in master list
for (var vt2 = 0; vt2 < all_objects_count; vt2++){
var vobjecthit = instance_place(x, y, all_objects[vt2])
if vobjecthit > 0 {Do such and such}
}
When I use this same code in another part of my game, which is in another room, it will not work unless I make the masks of each of the same objects Automatic/Rectangle or some other imprecise method. I don't understand what the difference could be that would be causing this not to work in the new place.
// Test collision with all objects in master list
for (var vt2 = 0; vt2 < all_objects_count; vt2++){
var vobjecthit = instance_place(x, y, all_objects[vt2])
if vobjecthit > 0 {Do such and such}
}
When I use this same code in another part of my game, which is in another room, it will not work unless I make the masks of each of the same objects Automatic/Rectangle or some other imprecise method. I don't understand what the difference could be that would be causing this not to work in the new place.