Hey, im working on some code to simulate a MIPS microprocessor. Im trying to change the color of a label when the getX of an actor equals a certain value. A snippet of the code is:
this is in the world class:
i'm not receiving any errors, but its not changing the color like it should. any ideas?
1 2 3 4 5 6 7 8 | if (getObjects(RedSquare. class ).isEmpty()) { RedSquare RSquare = (RedSquare) getObjects(RedSquare. class ).get( 0 ); if (antTwo.getY() == 380 ) { ABusRight.setBackground(Color.RED); } } |