With instance_count_region, you can count the number of (specific) instances in a specific region, e.g. in a circle. It's really easy to use, you just need to use the scripts.
Actually you can use:
Maybe i will add some more region shapes, like a star or something like that.
instance_count_rectangle(x1,y1,x2,y2,prec,notme); count = instance_count_rectangle(0,0,128,128,0,0); instance_count_circle_object(x1,y1,x2,y2,obj,prec,notme); count = instance_count_circle_object(0,0,128,128,obj_test,0,0);
With instance_count_(region)_object, you can count the number of an specific instance in a specific region.
Version 1.0.1. Published March 23, 2015
Created with GameMaker: Studio v1.4.1565
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
If I destroy an instance the game crash
What can I do ? Please help !