Hello,
I feel like I should be able to figure this out, so sorry, but my brain is just not figuring it out at the moment.
Simply put: enemies are moving towards your character and when get close do a different action (jump at them), so am trying to compare X but am just not getting it:
So would think could use Enemy compare X so it would only select the instances of the enemy that are close, lets say withing 100 pixels so it would be if abs(Enemy-Character) < 100.
But I have to use the comparison Enemy <,>, etc. and it is not hitting me what to do as Enemy.X < Character.x +100 does not work as enemies are coming from both sides.
I am about to just add LOS to enemy out of frustration, could use an instance variable also, but thought there would be a simpler equation as a solution.
Thanks,
Chris