0

選手が走っている時のアニメーションを作りたいです。テクスチャ パッカーを使用して、すべての画像を .pack ファイルに入れました。そして、ここに私のコードがあります:

TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("images1/images.pack"));
private Array<AtlasRegion> textureRegion1 = new Array<AtlasRegion>();
textureRegion1 = atlas.findRegions("rps_man");
animation[0] = new Animation(1/4f, textureRegion1);
TextureRegion currentFrame = animation[0].getKeyFrame(stateTime, true);

問題は、私のアニメーションはうまく動くのですが、滑らかではありません。プレーヤーの周りに「デルティル」がありました。どんな助けでも大歓迎です。読んでくれてありがとう!

P/s: .pack ファイルをメモ帳で開いて変更filter: Nearest,Nearestしましfilter: Linear,Linearたが、何も起こりませんでした。

4

0 に答える 0