I am attempting to create a programme which will randomly select 1 of 90 actors and change their transparency from the '0' which I have set, to '255' which is the transparency I want. I have tried many different techniques all of which have sadly failed so I need help from the discussions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | { public void act() { getImage().setTransparency( 0 ); } public int isKeyDown1; { if (Greenfoot.getRandomNumber( 91 ) == 1 ) { getImage().setTransparency( 255 ); } } } |