Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.  
  2.     public TextureRegion getNextRegion(String Path, int CurrentFramex)
  3.     {
  4.         String file_name = fileList[CurrentFramex];
  5.         if(tex!=null)
  6.         {
  7.                         tex.dispose();
  8.         }
  9.                 FileHandle file = Gdx.files.internal(Path+file_name);
  10.                 tex = new Texture(file);
  11.                 TextureRegion tex1= new TextureRegion(tex);
  12.        
  13.                 return tex1;
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement