FullCup
Member
I put a mask_index of an object a empty sprite, so that in some conditions it doesn't collide with the object.
The place_meeting works, when the mask_index is off it will not collide (what i want).
But, the collision_rectangle is not working, probably using the box of the sprite instead of the empty mask, what i could do?
The place_meeting works, when the mask_index is off it will not collide (what i want).
GML:
///It works
//Mask off
with (argument0) {if (condition) mask_index = spr_empty;}
//Will not check the collision
if place_meeting(x,y,argument0) {...}
GML:
///It does not work
//Mask off
with (argument0) {if (condition) mask_index = spr_empty;}
//Will check the collision (i don't want that)
if collision_rectangle(bbox_left,bbox_top,bbox_right,bbox_bottom,argument0,1,0) {...}