Launching Photoshop to JSON to GameMaker
Game Jams, UI designs, additional content files for 2D mobile games...
Getting images from Photoshop to Code is needlessly time consuming. Hopefully, this can help!
I've just finished a little multi-part resource that should do a little bit to help everyone with their image workflow. Imagine this, as your NEW way of doing things:
- You design your layouts, screens, UI, or anything visual in Photoshop.
- You name you layers or groups according to the filenames you'd like to have.
- You categorize layers by color, according to the kinds of code objects you'd like them to become.
- You link together layers that should share properties rather than exist separately (button normal/button hover images?)
- Done?!?!?!?!?!
But really! This resource includes a jsx file--that's a Javascript Extenscript file--that runs inside of Photoshop and turns your layers into JSON! The script produces accurate layer position info, layer labels, and lists of linked layers. In any engine, you've just got to import this data and match the image names, categories, and your desired objects.
Using GameMaker Studio 2? You're even MORE done.
This resource also includes all of the scripts needed to import a package of image files, load them as sprite resources, and convert them into objects. Scripts, demo objects, and sample files are all included.
Files
Get Photoshop to JSON to GameMaker
Photoshop to JSON to GameMaker
Generate JSON from your PS image assets, load objects in GameMaker.
Leave a comment
Log in with itch.io to leave a comment.