This site requires JavaScript, please enable it in your browser!
Greenfoot back
IgnisDragon
IgnisDragon wrote ...

2016/8/1

Game Not working? un-findable error

IgnisDragon IgnisDragon

2016/8/1

#
Ok so ive been having a problem with the past few weeks with the rest of my game loading, for example the actual main menu loads but then nothing else does. when i make updates it compiles with no errors. The only problem with my game is that it uses a ray casting system :P any help is appreciated I got told by my friend to ask for danposts help as he helped him before thank you
danpost danpost

2016/8/1

#
IgnisDragon wrote...
when i make updates it compiles with no errors.
I could be mistaken, but I get the impression that you are using 'Greenfoott.start();' in your initial world constructor. If that is the case, remove it; then, report back as to when the issue appears to show up (you may be able to better describe the actual behavior then). If it is not the case, then you should probably post your initial world class code here (to start with), unless you can upload the scenario with source (which would make it easier to deal with in solving the issue). Btw, you will probably have to post that class in either case unless uploading the scenario.
IgnisDragon IgnisDragon

2016/8/3

#
not using a greenfoot start in my world constructor, but here is the code for the initial world constructor
import greenfoot.*;

import java.awt.*;
import javax.swing.*;
import java.awt.image.*;



public class RaY extends World
{
    
    int level=1;
    int[] stats = {200,1,1,5,40,80,5,5,5};
    String[] keys = {"up","down","right","left","d","a","s","w","1","2","3","4"};
    
    public RaY() { 
        super(360,300, 1);
        setPaintOrder(keyEdit.class,FPS.class,credits.class, hit_blood.class, breifing.class, Main_menu.class, blood.class, crossHair.class, caster.class);
        setBackground("it.gif");
        addObject(new Main_menu(),150,150);
        addObject(new crossHair(),150,150);
    }
    
    public void superGun(){
        stats[2] = 4;
    }
    
    public void setKeys(String[] set){
        keys = set;
    }
    
    public String[] getKeys(){
        return keys;
    }
        
    public int getLevel(){
        return level;
    }
    
    public void nextLevel(){
        level++;
    }
    public void setLevel(int l){
        level = l;
    }
    public void setGuns(int g){
        stats[2] = g;
    }
    
    
    public double[] enX(){
        double[] a1 = {2.5,19.5,11.5,11.5,7.5,11.5,17.5};
        double[] a2 = {2.5,2.5,14.5,18.5,2.5,3.5,14.5,14.5,14.5};
        double[] a3 = {3.5,3.5,6.5,6.5,4.5,18.5,17.5,17.5,19.5,2.5,6.5};
        double[] a4 = {12.5,12.5,13.5,13.5,12.5,2.5,3.5,4.5,4.5,19.5};
        double[] a5 = {4.5,4.5,17.5,17.5,2.5,2.5,19.5,19.5};
        double[] a6 = {2.5,2.5,18.5,18.5,2.5,18.5,9.5};
        double[] a7 = {6.5,7.5,8.5,2.5,19.5};
        double[] a8 = {2.5,4.5,6.5,8.5,10.5,12.5,14.5,17.5,19.5,19.5};
        if(level==1)return a1;
        if(level==2)return a2;
        if(level==3)return a3;
        if(level==4)return a4;
        if(level==5)return a5;
        if(level==6)return a6;
        if(level==7)return a7;
        if(level==8)return a8;
        return a2;
    }
    public double[] enY(){
        double[] b1 = {17.5,19.5,15.5,16.5,9.5,2.5,11.5};
        double[] b2 = {8.5,7.5,3.5,11.5,19.5,19.5,17.5,5.5};
        double[] b3 = {4.5,6.5,4.5,6.5,18.5,18.5,9.5,10.5,19.5,10.5,8.5};
        double[] b4 = {8.5,9.5,8.5,9.5,13.5,13.5,13.5,13.5,17.5,2.5};
        double[] b5 = {4.5,17.5,4.5,17.5,2.5,19.5,2.5,19.5};
        double[] b6 = {2.5,9.5,2.5,9.5,18.5,18.5,18.5};
        double[] b7 = {3.5,3.5,3.5,17.5,16.5};
        double[] b8 = {2.5,19.5,2.5,19.5,2.5,19.5,2.5,19.5,2.5,19.5};
        if(level==1)return b1;
        if(level==2)return b2;
        if(level==3)return b3;
        if(level==4)return b4;
        if(level==5)return b5;
        if(level==6)return b6;
        if(level==7)return b7;
        if(level==8)return b8;
        return b2;
    }
    public int[] type(){
        int[] c1 = {1,1,1,1,1,1,4};
        int[] c2 = {1,1,1,1,3,3,4,4};
        int[] c3 = {1,1,1,1,3,1,3,3,6,4,4};
        int[] c4 = {1,1,1,1,2,1,1,1,5,4};
        int[] c5 = {2,2,2,2,4,5,5,7};
        int[] c6 = {1,1,1,1,1,1,4};
        int[] c7 = {5,5,5,8,4};
        int[] c8 = {1,1,1,1,1,1,1,1,1,2};
        if(level==1)return c1;
        if(level==2)return c2;
        if(level==3)return c3;     
        if(level==4)return c4;  
        if(level==5)return c5; 
        if(level==6)return c6; 
        if(level==7)return c7; 
        if(level==8)return c8; 
        return c2;
    }
    public int[] aimTime(){
        int[] d1 = {20,20,20,20,30,20,0};
        int[] d2 = {25,25,35,20,5,5,8,8};
        int[] d3 = {3,3,3,3,5,5,40,40,5,5,5};
        int[] d4 = {1,1,1,1,5,3,3,3,5,5};
        int[] d5 = {5,5,5,5,5,3,3,3};
        int[] d6 = {1,1,1,1,1,1,3};
        int[] d8 = {5,5,5,5,5,5,5,5,5,5};
        if(level==1)return d1;
        if(level==2)return d2;
        if(level==3)return d3;
        if(level==4)return d4;
        if(level==5)return d5;
        if(level==6)return d6;
        if(level==8)return d8;
        return d2;
    }                 
    public int[] fireTime(){
        int[] e1 = {55,55,55,55,55,50,50};
        int[] e2 = {50,50,40,55,35,35,25,25};
        int[] e3 = {25,25,25,25,35,25,41,41,5,5,5};
        int[] e4 = {25,25,25,25,8,25,25,41,5,5};
        int[] e5 = {8,8,8,8,8,25,25,41};
        int[] e6 = {20,20,20,20,20,25,25};
        int[] e8 = {20,20,20,20,20,20,20,20,20,8};
        if(level==1)return e1;
        if(level==2)return e2;
        if(level==3)return e3;
        if(level==4)return e4;
        if(level==5)return e5;
        if(level==6)return e6;
        if(level==8)return e8;
        return e2;
    }      
    public int[] warmup(){
        int[] f1 = {-20,-20,-10,-10,-10,-10,10};
        int[] f2 = {-10,-10,-25,-5,-30,-30,-10,-10};
        int[] f3 = {-5,-5,-5,-5,-15,-40,-10,-10,5,5,5};
        int[] f4 = {-5,-5,-5,-5,-30,-5,-5,-5,5,5};
        int[] f5 = {-30,-30,-30,-30,-30,-5,-5,-5};
        int[] f6 = {-10,-10,-10,-10,-10,-10,-5};
        int[] f8 = {-10,-10,-10,-10,-10,-10,-10,-10,-10,-30};
        if(level==1)return f1;
        if(level==2)return f2;
        if(level==3)return f3;
        if(level==4)return f4;
        if(level==5)return f5;
        if(level==6)return f6;
        if(level==8)return f8;
        return f2;
    }   
    public int[] speed(){
        int[] g1 = {50,50,50,50,50,50,50};
        int[] g2 = {50,50,40,50,40,40,40,40};
        int[] g3 = {50,50,50,50,32,25,32,32,5,5,5};
        int[] g4 = {25,25,25,25,80,25,25,25,5,5};
        int[] g5 = {80,80,80,80,80,25,25,25};
        int[] g6 = {20,20,20,20,20,20,25};
        int[] g8 = {10,10,10,10,10,10,10,10,10,80};
        if(level==1)return g1;
        if(level==2)return g2;
        if(level==3)return g3;
        if(level==4)return g4;
        if(level==5)return g5;
        if(level==6)return g6;
        if(level==8)return g8;
        return g2;
    }            
    public int[] health(){
        int[] h1 = {8,8,8,8,10,10,10};
        int[] h2 = {12,12,8,10,12,10,14,14};
        int[] h3 = {12,12,12,12,12,15,20,20,5,5,5};
        int[] h4 = {12,12,12,12,30,12,12,12,5,5};
        int[] h5 = {30,30,30,30,30,12,12,12};
        int[] h6 = {20,20,20,20,20,20,12};
        int[] h8 = {20,20,20,20,20,20,20,20,20,30};
        if(level==1)return h1;
        if(level==2)return h2;
        if(level==3)return h3;
        if(level==4)return h4;
        if(level==5)return h5;
        if(level==6)return h6;
        if(level==8)return h8;
        return h1;
    }        
    public int dim(){
        if(level==1)return 7;
        if(level==2)return 8;
        if(level==3)return 11;
        if(level==4)return 10;
        if(level==5)return 8;
        if(level==6)return 7;
        if(level==7)return 5;
        if(level==8)return 10;
        return 7;
    }   
    public int[] status(int dim){
        int[] i = new int[dim];
        for(int f=0;f<dim;f++){
            i[f] = -1;
        }
        return i;
    }  
    public int[] vector(int dim){
        int[] j = new int[dim];
        for(int f=0;f<dim;f++){
            j[f] = 0;
        }
        return j;
    }  
    public double[] dist(int dim){
        double[] k = new double[dim];
        for(int f=0;f<dim;f++){
            k[f] = 0;
        }
        return k;
    }   
    public double[] position(){
        double[] a1 = {2.5,3.5,0};
        double[] a2 = {2.5,10.5,0};
        double[] a3 = {2.5,13,0};
        double[] a4 = {2.5,11.5,0};
        double[] a5 = {10.5,3.5,90};
        double[] a6 = {10.5,10.5,90};
        double[] a7 = {2.5,2.5,0};
        double[] a8 = {2.5,11.5,0};
        if(level==1)return a1;
        if(level==2)return a2;
        if(level==3)return a3;
        if(level==4)return a4;
        if(level==5)return a5;
        if(level==6)return a6;
        if(level==7)return a7;
        if(level==8)return a8;
        return a1;
    }
    public int[] arr(){
        int[] l1 =     {8,8,8,9,8,8,8,8,8,3,8,8,8,8,8,8,8,8,8,8, 
                        8,0,0,0,0,8,8,8,0,0,0,8,0,0,0,0,0,0,0,8,
                        9,0,0,0,0,0,0,9,0,0,0,8,0,0,0,0,6,0,0,8,
                        8,0,0,0,0,8,0,8,0,0,0,0,0,0,0,0,0,0,0,8,
                        8,8,8,9,8,8,0,8,0,0,0,8,8,0,0,0,6,0,0,7,
                        8,0,0,0,0,1,0,8,0,0,0,8,0,0,0,0,0,0,0,8,
                        9,0,0,0,0,1,0,8,0,0,0,0,0,0,8,0,0,0,0,8,
                        7,0,0,0,9,8,8,8,0,0,8,8,0,0,8,8,0,0,0,8,
                        9,0,0,0,8,0,0,0,0,0,0,8,0,8,8,8,8,8,1,8,
                        8,0,0,0,8,0,0,0,0,0,0,0,0,8,0,0,0,0,0,9,
                        8,0,0,0,8,8,8,8,8,8,8,8,9,8,0,0,0,0,0,7, 
                        8,0,0,0,8,0,0,0,0,0,0,0,0,1,0,0,0,0,0,9,
                        9,0,8,8,8,1,8,8,8,8,9,8,8,8,8,8,8,8,8,8,
                        7,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,
                        9,0,8,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,
                        8,0,8,0,0,0,0,0,0,6,0,0,0,0,0,6,0,0,0,8,
                        8,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,
                        8,0,8,8,9,8,9,8,8,8,9,8,9,8,8,8,8,8,1,8,
                        8,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,
                        8,8,8,8,9,7,9,8,8,8,9,7,9,8,8,8,9,7,9,8};  
        int[] l2 =     {2,2,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,  
                        2,0,0,1,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,2,
                        2,0,0,1,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,2,
                        5,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,1,6,1,2,
                        2,0,0,0,0,0,0,0,1,0,2,5,0,0,0,2,0,0,0,2,
                        2,2,0,0,6,0,0,0,1,0,2,2,0,0,0,2,0,6,0,5,
                        2,0,0,0,0,0,6,0,1,0,2,2,0,0,0,2,0,0,0,2,
                        2,0,0,2,0,0,0,0,1,0,2,5,0,0,0,2,0,6,0,2,
                        2,8,8,8,2,2,2,2,2,0,2,2,4,4,4,2,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,2,2,0,0,0,1,1,6,0,5,
                        2,8,8,8,8,8,8,8,8,8,8,8,0,0,0,1,1,0,0,2, 
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,2,
                        2,0,8,8,8,9,8,8,8,8,8,8,8,9,8,8,8,9,8,8,
                        2,0,1,0,0,8,0,0,0,0,2,0,0,0,0,0,0,0,0,8,
                        2,1,1,0,0,0,0,0,0,1,2,0,8,9,8,0,0,0,0,7,
                        2,0,0,0,0,0,0,6,0,1,0,0,8,0,0,0,0,0,0,3,
                        2,0,0,6,0,0,0,0,0,1,0,0,8,0,0,0,0,0,0,7,
                        2,0,0,0,0,0,6,0,0,1,2,0,8,9,8,0,0,0,0,8,
                        2,0,0,2,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,7,
                        2,2,2,2,2,2,2,2,2,2,2,8,8,8,8,9,8,8,8,8};  
        int[] l3 =     {2,2,2,2,2,2,2,5,2,2,2,2,5,2,2,2,2,2,2,2,  
                        2,2,2,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,2,
                        2,6,6,0,6,6,6,2,2,2,2,2,2,2,0,6,0,6,0,2,
                        2,0,0,0,0,0,6,0,0,0,0,0,0,2,0,0,0,0,0,5,
                        2,6,6,0,2,2,6,0,0,2,0,0,0,2,0,6,0,6,0,2,
                        2,0,0,0,0,0,6,0,0,2,0,0,0,2,0,0,0,0,0,2,
                        2,4,6,0,6,6,6,0,0,2,2,0,0,2,0,6,0,6,0,2,
                        2,0,6,0,6,0,0,0,0,0,2,0,0,2,0,1,1,1,0,2,
                        2,0,6,0,6,6,6,2,0,0,2,0,0,2,0,6,0,6,0,2,
                        2,0,6,0,0,0,0,2,0,0,2,0,0,2,0,1,0,0,0,2,
                        8,8,8,9,8,8,0,2,0,0,2,0,0,2,2,2,2,2,2,2, 
                        8,0,0,0,0,0,0,2,0,0,2,0,0,0,0,0,0,0,0,2,
                        8,0,0,0,0,0,0,2,0,0,2,0,2,0,0,6,6,6,0,2,
                        8,8,8,9,8,8,1,2,1,1,2,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,2,2,2,2,2,0,0,0,0,5,
                        2,0,0,0,6,0,0,0,0,0,0,0,0,0,2,0,6,6,0,2,
                        2,0,6,6,6,0,0,6,6,6,6,0,6,0,2,0,6,0,0,2,
                        2,0,1,0,6,6,0,0,0,6,0,0,6,0,2,0,6,0,0,3,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,2,
                        2,2,2,2,2,2,2,5,2,2,2,2,2,2,2,2,2,5,2,2};  
        int[] l4 =     {2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,  
                        2,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,2,
                        2,0,0,6,0,0,0,0,0,0,0,0,0,0,6,0,0,2,0,2,
                        2,0,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,6,0,6,0,2,
                        2,0,0,0,0,6,0,0,0,2,0,0,6,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,2,2,0,0,0,8,8,7,8,8,8,
                        2,0,0,6,0,0,0,6,0,0,2,0,0,8,8,0,0,0,0,8,
                        2,0,0,0,0,0,0,0,0,0,2,0,0,8,0,0,0,0,0,7,
                        2,2,2,2,2,2,2,2,2,0,8,8,7,8,0,8,0,0,0,9,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,7, 
                        2,2,2,2,2,5,2,2,2,0,8,8,7,8,8,8,0,0,0,8,
                        2,0,0,0,0,0,0,2,0,0,8,0,8,0,0,8,0,0,0,8,
                        2,6,6,6,6,6,0,2,0,0,8,0,0,0,0,0,0,0,0,8,
                        2,0,0,0,0,0,0,6,6,0,8,8,8,8,8,0,0,0,0,8,
                        5,0,6,0,6,0,6,6,6,0,0,0,0,0,9,0,0,0,0,8,
                        2,0,6,0,6,0,0,0,6,6,6,0,6,0,8,0,0,0,0,7,
                        2,0,6,6,6,6,0,6,6,6,0,0,6,0,8,0,0,0,0,9,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,7,
                        2,2,2,5,2,2,2,5,2,2,2,5,2,2,8,8,8,3,8,8};  
        int[] l5 =     {2,2,3,2,2,2,2,2,6,3,6,2,2,2,5,2,2,3,2,2,  
                        2,0,0,0,0,0,0,0,6,0,6,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,2,0,0,0,6,0,6,0,0,0,0,6,0,0,0,2,
                        2,0,0,0,2,0,0,0,6,0,6,0,0,0,0,6,0,0,0,2,
                        5,0,2,2,2,0,0,0,6,0,6,0,0,0,0,6,6,6,0,5,
                        2,0,0,0,0,0,0,0,6,0,6,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,6,0,6,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,6,6,6,0,6,6,6,0,0,0,0,0,0,2,
                        2,0,0,0,0,1,6,0,0,0,0,0,6,1,0,0,0,0,0,2,
                        2,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,5,
                        2,0,0,0,0,1,6,0,0,0,0,0,6,1,0,0,0,0,0,2, 
                        5,0,0,0,0,0,6,6,6,0,6,6,6,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,2,2,2,0,0,0,0,0,0,0,0,0,0,6,6,6,0,2,
                        5,0,0,0,2,0,0,0,0,0,0,0,0,0,0,6,0,0,0,2,
                        2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,6,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,2,2,2,5,2,2,2,2,2,5,2,2,2,2,2,5,2,2,2};
        int[] l6 =     {2,2,2,2,2,5,2,2,3,2,5,2,2,2,2,2,5,2,2,2,  
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        5,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2, 
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,2,
                        2,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        5,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,2,
                        2,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        2,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2, 
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        5,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,2,
                        2,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,2,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        2,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,6,0,5,2,
                        5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,
                        2,2,2,2,2,5,2,2,2,2,2,5,2,2,2,5,2,2,2,2,
                        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2};
        int[] l7 =     {8,8,8,7,9,7,8,8,7,9,7,8,8,7,9,7,8,8,8,8,
                        8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,
                        8,8,8,8,8,0,0,0,0,8,8,8,8,8,8,8,0,8,0,9,
                        2,0,0,0,2,8,8,8,8,8,0,0,0,0,0,8,0,8,0,7,
                        2,0,0,0,4,0,0,0,0,2,0,8,8,8,0,8,0,8,0,9,
                        2,0,0,0,2,8,0,0,0,2,0,0,0,8,0,0,0,8,0,8,
                        2,2,0,2,2,8,0,0,0,2,0,2,0,8,8,8,0,8,0,9,
                        8,0,0,8,0,9,0,0,0,4,0,2,0,0,0,9,0,8,0,8,
                        9,0,8,8,0,8,9,8,8,8,8,8,8,8,0,8,0,8,0,8,
                        7,0,8,0,0,0,0,0,0,8,0,0,0,8,0,8,0,8,0,7,
                        9,0,8,0,8,8,8,8,0,8,0,8,0,0,0,0,0,8,0,8, 
                        8,0,8,0,8,8,0,0,0,0,0,8,8,9,8,8,8,8,0,8,
                        8,0,8,0,8,8,0,8,8,8,8,8,0,0,0,0,8,0,0,8,
                        8,0,0,0,0,8,0,9,8,8,8,8,9,8,8,0,8,8,8,8,
                        8,0,8,8,0,8,0,0,0,0,0,0,0,0,0,0,0,8,0,8,
                        9,0,9,0,0,8,0,8,8,8,8,9,8,8,8,8,8,8,0,8,
                        7,0,7,0,8,9,0,0,0,0,8,0,0,0,0,0,0,8,0,7,
                        9,0,9,0,8,8,8,8,8,8,9,8,0,8,8,8,8,8,0,8,
                        8,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,
                        8,3,8,8,8,7,8,8,8,7,8,8,8,7,8,8,8,8,8,8};
      int[] l8 =       {2,2,2,2,2,2,5,2,2,2,2,2,5,2,2,2,2,5,2,2,  
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        8,8,8,9,8,8,9,8,8,0,0,0,0,0,0,0,0,0,0,2,
                        7,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,2,
                        3,0,0,0,0,8,0,0,9,0,0,0,0,0,0,0,0,0,0,5, 
                        7,0,0,0,0,8,0,0,8,1,1,0,0,0,0,0,0,0,0,2,
                        8,8,8,9,8,8,0,0,0,0,1,0,0,0,0,0,0,0,0,2,
                        7,0,0,0,0,0,0,0,8,1,1,0,0,0,0,0,0,0,0,2,
                        8,8,8,0,8,8,8,8,8,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,
                        2,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
                        2,2,2,2,2,2,2,5,2,2,2,2,2,5,2,2,2,5,2,2};
                        
                     /**{2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,  
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2, 
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2, , , , , , , , , , , , , , , , , , ,2,
                        2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2};   */
        if(level==1)return l1;
        if(level==2)return l2;
        if(level==3)return l3;
        if(level==4)return l4;
        if(level==5)return l5;
        if(level==6)return l6;
        if(level==7)return l7;
        if(level==8)return l8;
        return l1;
    } 
   public void setStats(int[] get){
       for(int f=0;f<9;f++){
           stats[f] = get[f];
        }
    }
   public int[] getStats(){
       return stats;
    }           
           
    
    
   
}

enjoy
danpost danpost

2016/8/3

#
There is nothing in this RaY class that could be an issue (although, I do not think there is any need for lines 3 through 5). The next two possible places that need looked at are the Main_menu class and the crossHair class.
IgnisDragon IgnisDragon

2016/8/7

#
I'll upload when possible
You need to login to post a reply.