得到一个矩形中特定实例的数目
在多种游戏中都能用到~//Instance_count_area(x1,y1,x2,y2,object you want to be counted)
var Inst;
Inst = 0;
with ( argument4 )
{
if collision_rectangle( argument0,argument1,argument2,argument3,argument4,1,0 ){ Inst += 1; }
}
return ( Inst );
页:
[1]