1

Can anyone describe TexturePacker settings that work for phaser? I am using an atlas with the JSON hash format to place objects in my game... they are not even animated. But I am getting many "Cannot set frameName: someimage.gif" errors... what am i doing wrong? I actually did get it right once, with the free version of TexturePacker... then I bought it, tried to make some changes and cannot get it right again!

My TexturePacker settings:

Data:

Data Format: json (hash)

Texture

Texture format: PNG Pixel format: RGBA8888

Layout

Max size W/H: 4096 Size constraints: POT (Power of Two) Force squared: on Allow Rotation: off Detect identical Sprites: on

Sprites

Trim mode: Trim Trim/Crop Threshold: 1 Pivot Point: Center Extrude: 0 Border padding: 0 Shape padding: 0 Inner Padding: 0 Common divisor x: 1 y: 1

and nothing else turned on...

4

2 に答える 2

3

TexturePacker 3.6.0で Phaser の公式サポートを追加しました。

JSON 配列と JSON データがフレームワーク セレクターから利用できるようになりました。

また、その使用方法を示す簡単なチュートリアルも作成しました。

于 2014-12-23T14:40:59.520 に答える