i wish to use something like this in world class update function
var clickables:Array = ["emitter","absorber","battery"];
var entity:Entity = this.collidePoint(clickables, FP.world.mouseX, FP.world.mouseY);
but i see it’s not possible easily because of multiplying type strings as an array in “collidePoint” function.
So, why we don’t have that feature?
Am i have to use that?
var entity:Entity = this.collidePoint("emitter", FP.world.mouseX, FP.world.mouseY);
if (entity == null) entity = this.collidePoint("absorber", FP.world.mouseX, FP.world.mouseY);
if (entity == null) entity = this.collidePoint("battery", FP.world.mouseX, FP.world.mouseY);
Or am i have to make an entity to follow mouse cursor to check multiple collide types from that entity to use collideTypes as a point?
If that’s not my miss, i should suggest that feature for FP’s further versions…