Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Pixel Composer

Node based VFX compositor for pixel art. · By MakhamDev

Using relative paths for assets?

A topic by Willitz created Jan 13, 2023 Views: 177 Replies: 2
Viewing posts 1 to 3

What is the best way to use relative paths for the assets I use in Pixel Composer projects (or is it even currently possible?) ? I typically work on a couple of different workstations and would like for my projects to be portable. 

Developer

You can use relative path just by renaming the path property (see how the image is saved in getting started project for example). Pixel Composer will search for the same directory of the project first, then search for the entire device.

Unfortunately you can’t change the path property of an image array. In the current version (v1.0.9) you have to edit the save file by opening the .pxc file in a text editor and replace the path manually.

The save file is simply a single line .json file, in vscode, you can use beautify to format it and search for absolute paths.

(1 edit)

Excellent! Thank you for the explanation!