title: Libgdx, TextureAtlas(.pack) via AssetManager
body: <p>I originally implemented loading TextureAtlas directly from the asset folder but 
  the game got really laggy as I had to call each region of the TextureAtlas for frames to be used in animation (libgdx stated that using findregion for TextureAtlas is SLOW=lag). So I decided to use assetloader to minimize the lag but the problem is
  I can't find a way to load TextureAtlas (.pack) via AssetManager. I am keep getting the </p>
  
  <p><strong>com.badlogic.gdx.utils.GdxRunTimeException: Assets not loaded: enemytest.pack</strong></p>
  
  <p>I kept trying using other loaders as well but it didn't go well..I could not find any resources so I need help :(
  Thanks you in advance!</p>
  
  <p>In my assets folder, I have "enemytest.png" and "enemytest.pack" files.</p>
  
  <p>This is a Game Class (extends Game)</p>
  
  <pre><code>public class MyGdxGame extends Game {
  
      private TextureAtlas enemy;
      AssetManager manager;
      FileHandleResolver resolver = new InternalFileHandleResolver();
  
      @Override
      public void create () {
  
          manager = new AssetManager();
          manager.setLoader(TextureAtlas.class, new TextureAtlasLoader(new InternalFileHandleResolver()));
          load();
  
          setScreen(new GameScreen());
      }
      @Override
      public void render(){
          if(manager.update()){
              }
  
      }
      private void load(){
  
          manager.load("enemytest.pack", TextureAtlas.class);
          manager.finishLoading();
      }
  }
  </code></pre>
  
  <p>This is GameScreen class..</p>
  
  <pre><code>public class GameScreen implements Screen{
  
      private GameStage stage;
      public Texture bg;
  
      public GameScreen() {
          stage = new GameStage();
      }
      @Override
      public void render(float delta) {
           //Clear the screen
  
          Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
                  //Update the stage
          stage.act(delta);
          stage.draw();
  
      }
  </code></pre>
  
  <p>This is where I want to get the TextureAtlas image from the AssetManager.</p>
  
  <pre><code>public class Enemy extends GameActor{
  
      private Animation animation;
      private float stateTime;
      AssetManager manager = new AssetManager();
      public Enemy(Body body) {
          super(body);
          TextureAtlas textureAtlas = manager.get("enemytest.pack", TextureAtlas.class);
          TextureRegion[] animationFrames = new TextureRegion[getUserData().getTextureRegions().length];
  </code></pre>