for(var/mob/M in obounds(32))
if(M in left())
// something
if(M in right())
// something
// etc
Problem description:
I'd like all atoms within range to have an effect applied to them, changing it based on whether they are to the left or right of the mob, and their Y value does not matter so long as it is within a certain range of the users.
So, a player 86 pixels to the left and 32 pixels up relative to the user will be effected, as will a player 23 pixels to the right and 12 pixels down relative to the user.
I simply have no clue where to begin and would like help.
If you're not using Forum_account's Sidescroller library, and you're using pixel movement, you can still compare relative positions, but using the built-in variables:
If you're not using pixel movement at all, then you only have to compare x.