我的动画类在这里:
import com.badlogic.gdx.graphics.TextureTextureRegion.split(texture, texture.getWidth() / cols, texture.getHeight() / rows); // split the spritesheet up into its 30 different frames
我试图用一个png文件制作一个动画,该文件具有不同的动作状态。我的问题是,这些图片在渲染时互相重叠。有解决办法吗,我只能展示一张照片?我使用LibGDX库。img = new Texture("core/assets/ghosty.png");
sprite= new Sprite (regions[0][0]);
Timer.sche