.ai file(illustrator vector) usage in Phaser 3

Hello

I am new at Phaser.
I have found this framework by googling yesterday.

Now I am going to try to import sprites and images.
But can’t be sure if I can import .ai extension.
For example, the .ai includes background components. The background components should look like they have different “z” depth.

I would like you to make me clear with this.
Thanks.

No; you would need to export the .ai as a .png or .svg and use that. All sprite/images have a depth setting, so to layout content as you described you’d need to use individual assets for each background component.

1 Like

Thanks, @prob.

I got your meaning.

Hope to learn more from you.