Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public TextureRegion getNextRegion(String Path, int CurrentFramex)
- {
- String file_name = fileList[CurrentFramex];
- if(tex!=null)
- {
- tex.dispose();
- }
- FileHandle file = Gdx.files.internal(Path+file_name);
- tex = new Texture(file);
- TextureRegion tex1= new TextureRegion(tex);
- return tex1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement