The top method is perfect for what I'm doing. After testing it, it's working perfectly well. I was doing it ALMOST correctly but didn't realize I had to do the "tilesmap.PositionToTile.X(player.X)" part. I thought it was a bit more simple than that lol.
However, one last question about this, if I need to check multiple tiles, (for example, all "mountain" tiles of different colors), and they start at 60, I know the OR expression is a pipe (|).
So I have this
tilesMap.TileAt(tilesMap.PositionToTileX(player.X), tilesMap.PositionToTileY(player.Y)) = 60|61|62|63|64
HOWEVER it now only does it with tile 1 (my water tile) which isn't even in the equation. Is there another way of doing this without it having to be copied and pasted multiple times?
HINT: I have put spaces between the numbers and pipes, putting the numbers in quotes, and using parentheses as well. Example: 60 | 61 | 62 etc.; "60"|"61"|"62" etc., (60)|(61)|(62) etc. Is there something wrong with this particular plugin or am I just doing something wrong?
EDIT: The reason I need "OR" to be involved instead of just doing a "greater or equal" with a "less or equal" duplicate is because not all of my solid objects are in a row, so it would take even more code. I'm all about efficiency (which is why I need that way you first described to handle everything).