Java libgdx中演员的动画在iphone上崩溃

Java libgdx中演员的动画在iphone上崩溃,java,android,ios,iphone,libgdx,Java,Android,Ios,Iphone,Libgdx,我使用stackover上的一个类来制作演员的动画,但是我在物理设备上崩溃了 类animateImage.java: public class AnimatedImage extends Image { protected Animation animation = null; private float stateTime = 0; public AnimatedImage(Animation animation) { super(animation.

我使用stackover上的一个类来制作演员的动画,但是我在物理设备上崩溃了

类animateImage.java:

public class AnimatedImage extends Image
{
    protected Animation animation = null;
    private float stateTime = 0;

    public AnimatedImage(Animation animation) {
        super(animation.getKeyFrame(0));
        this.animation = animation;
    }

    @Override
    public void act(float delta)
    {
        ((TextureRegionDrawable)getDrawable()).setRegion(animation.getKeyFrame(stateTime+=delta, true));
        super.act(delta);
    }
}
方法,获取帧并添加到舞台:

Array<TextureRegion> waveArrayTextureRegions = new Array<TextureRegion>();
for(int i = 1; i < 24; i++){
    waveArrayTextureRegions.add(new TextureRegion(new Texture("wave/4096/wave ("+i+").png")));
}
waveAnimation = new Animation(0.15f,waveArrayTextureRegions, Animation.PlayMode.LOOP);
waveActor = new AnimatedImage(waveAnimation );
waveActor.setWidth(Gdx.graphics.getWidth() / 1.05f);
waveActor.setHeight(Gdx.graphics.getHeight() / 1.05f);
waveActor.setPosition(0,0);
stage.addActor(waveActor);
Array waveArrayTextureRegions=new Array();
对于(int i=1;i<24;i++){
添加(新纹理区域(新纹理(“wave/4096/wave(“+i+”).png”)));
}
waveAnimation=新动画(0.15f,waveArrayTextureRegions,Animation.PlayMode.LOOP);
waveActor=新动画图像(waveAnimation);
waveActor.setWidth(Gdx.graphics.getWidth()/1.05f);
waveActor.setHeight(Gdx.graphics.getHeight()/1.05f);
waveActor.setPosition(0,0);
舞台演员(waveActor);
我想添加这个类是动画演员,在Android上没有问题,但当我通过RoboVM在iPhone上安装它时崩溃了。 这可能是因为学生对iPhone的喜爱有问题吗? iPhone模拟器上的Additirruta只有在我把它放在物理设备上时才起作用,我在这节课上崩溃了。
有人能帮我一个忙吗?

问题是,使用4096px以上的纹理,而不是使用不超过4000 x 4000 px的图像,一切都很好。显然不支持更大的决议


在我的例子中,我有一个8000像素乘以1200像素的图像,用于制作滚动背景,解决方案是从每个4000像素中制作两个图像,并将它们与代码组合在一起,可能是在一个组中(libgdx)。

您能提供有关崩溃的更多信息吗?回溯和/或日志会很有帮助。比如user2016436说我们需要更多信息。。随机猜测:纹理太大,或者文件系统无法按您期望的方式工作。