I\'m not even sure if this code will do anything even if it works, but I don\'t know what to do to get rid of the \"Local variables referenced from an inner class must be final
As it says, the var i needs to have the final prefix. Change the code to something like this:-
for(int i = 0; i < 50; i++) {
final int i2 = i;
new AnimationTimer()
{
public void handle()
{
fireballRight[i2].setImage("puercosloco/fireballright.png"); // Use i2 instead of i.