For example I want to only do something with border1, a object of my Border class. How can I target only border1 (in my case with isTouching("border1").
Border border1 = new Border(); addObject(border1, 100, 100);
Border border1= ((MyWorld)getWorld()).border1; if(intersects(border1)) { //do something }
Border border1 = new Border(); addObject(border1, 100, 100);
Border border1= ((MyWorld)getWorld()).border1; if(intersects(border1)) { //do something }