Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

SpineSlotExt

A GameMaker Studio extension allowing the runtime manipulation of slot colour, alpha and collisions on Spine skeletons. · By rIKmAN

A few questions

A topic by Undergroundies created Sep 05, 2018 Views: 331 Replies: 7
Viewing posts 1 to 5

I have been making a creature breeder in GM 1.4 for the past couple years and something I have always wanted to do is color individual body parts. It was something I could not do so I ended up giving the entire body the "tint". I keep my RGB numbers in the high range to keep my colors "light". I was wondering if I could still do this with your system WITHOUT using grey scale body parts? Could I use your system to add a light splash of color to already colored body parts? Also, will it run ok using the version of spine I have and the runtimes I use? I use an older version of Spine and older runtimes because of issues with 1.4. 

If this is possible I would be more than happy to purchase your lovely extension, thanks for making this. :)

UG

Developer (4 edits)

Hi,

If I understand you correctly, no it is not possible to tint certain areas of a slot to create "highlights" within the original source image.  This isn't possible with Spine itself either though (inside the editor) and isn't how slot colouring is supposed to work.
You could of course have a "highlight" slot with an image attachment that is positioned over the base image and colour that a lighter colour.

Highlights would normally be created using lighter/darker areas in the original image and the resulting tint would then be lighter or darker based on the blend with the original colour value. You don't have to use greyscale body parts, but using already coloured parts limits the colours you can tint to, simply because of the way colour blending works. 

Using greyscale source images allow you to blend to any colour cleanly and retain shading of light / darker areas by simply using lighter / darker grey areas on the source files.  Very easy to manage.

The best thing I can say is to download the Test Tool from the extension page, load in your json files and have a play around with colouring the various slots on your skeleton and see the results.

Many art programs should be able to help you convert any existing "coloured" images to greyscale if you also wanted to play around with your skeleton in greyscale and see the different possibilities when greyscale images are used as the source images.

In terms of Spine version, the extension supports the version of Spine recommended by YYG.
This is currently v3.4.02, and although later versions should work the extension will keep in line with the "officially supported" GMS version.

The general rule is: "If a skeleton will load into GMS as a sprite, then it will load into the Test Tool without issues.".

I made the tool so people could see the end results of slot colouring on their own skeletons before they decided whether to purchase the extension, and it seems this would be ideal for you to do.  Test it out with a greyscale skeleton and a colour skeleton and check out the results to see if they are suitable for your project.

If you have any problems with anything let me know and I'll be happy to help.

Thanks for the helpful reply, I already know that grey scale is not the way I want to go as I have messed with it in the past. But tinting already colored body parts is exactly what I need to do ( and I know I'm limited :)). Answered all of my questions, problem is though I cannot get the test tool to work. I get this




Then this






I loaded the json file from the exports folder for my beast


Thanks, UG.

Developer (11 edits)

Looks like you didn't take a look at the included README.pdf for how to use the Test Tool! :)

If you haven't generated a .atlas file yet (which from the error looks like it might be the case) then re-export from Spine and create an atlas.  The steps to do this are listed on Page 2 of the README.pdf in the Test Tool folder.

Once you have your .json, .atlas and .png files, copy them into the same directory as the Test Tool exe file (spineSlotExt_Test_Tool.exe) and it should work.

If you want to load your skeletons from any other location than the same folder as the exe, then you need to edit your atlas file and add the additional file path data.  This is also explained on Page 2 of the README.pdf manual.

As I mentioned though, the quickest way is just to just drop your 3 files into the same folder as the Test Tool exe and load them from there.

If this still doesn't work, then you may have an issue with the path in your .atlas file not pointing to the correct path for the .png file.  It's hard to say without seeing the files or knowing how you have things setup inside Spine.

Take a look at the .atlas files for the example skeletons in the "examples" folder to see how "examples/" has been added to the png filepath.

If you copied your files into there then you would edit the .atlas and add "examples/" to the png filepath, the same way as the ones already in there have had this added to their .atlas files.

If you are still having issues let me know and I'll be happy to work through them with you and get your skeleton loaded in or a take a look at the files and see what the issue may be.


This extension is friggin awesome... And so much helpful documentation. This is EXACTLY what I need. Now just to integrate it into my game. Thanks a bunch for all of your help. I will be buying this tomorrow. UG

Developer (1 edit)

Glad you got it working!

Thanks for the kind words, and I hope you find the extension helpful.
I have tried to make the extension documentation in the same way - as clear as possible with examples / descriptions of all the functions as well as fully commented code in the example projects showing how each function works.

However if you have any problems then don't hesitate to get in touch.

Also, that artwork looks great! :)

Thanks :)

 Do you not have a pay with credit card option for this?  it seems I can only pay with paypal.

Also is there any way I can can get a hold of you off-site? like an email or something?

UG

Developer (1 edit)

You can pay using a card by linking it to your PayPal account and then choosing it at the checkout.
I have not setup direct payments from a card due to the associated fees and hassle when compared to PayPal.

Sure - you can hit me up on Discord: rIKmAN#2213