sr = new SpriteRendererComponent(null,matriz3[2][0]);
seismographGO.AddComponent(sr);
addGameObject(seismographGO);
GameObject animatedGO = new GameObject("anim");
AnimationComponent anim = new AnimationComponent();
Texture tx = new Texture(Gdx.files.internal("data/textures/sismoAnim.png"));
int[] frames = { 0, 1, 2, 3, 4, 5, 6, 7};
anim.addAnimation("anim", tx, 384, 192, frames, 5, false);
anim.play("anim");
animatedGO.AddComponent(anim);
animatedGO.AddComponent(new SpriteRendererComponent(null));
animatedGO.transform.getPosition().add(width/2 - 370/2, height/2 - 215/2);
seismographGO.addGameObject(animatedGO);