1 | initial version |
That seems fairly simple to me
For example if you have a border at x=15, x =100 and x=250 (all vertical lines), then you can apply these if loops
if(position.x < 15){
//execute first code
}elseif( 15 < position.x && position.x < 100){
//execute second code
}elseif( 100 < position.x && position.x < 250){
//excute third code
}else{
//you are in the fourth code part
}