Between yes. I figured out how to stay between the walls on the length, but when it spawns, I need to find a way on how to not exceed the walls on the height if that makes sense.
Between yes. I figured out how to stay between the walls on the length, but when it spawns, I need to find a way on how to not exceed the walls on the height if that makes sense.
Sounds like you have 4 conditions for one coordinate value and 2 conditions for the other; but the order of coordinates could be swapped. So either (the x-coordinate is between the inner and outer walls and the y-coordinate is between outer walls) OR (the x-coordinate is between outer walls and the y-coordinate is between the inner and outer walls). By "inner and outer walls", there are two places where this can occur. That is why there are 4 conditions to be checked for that.