if the bottom corners were dark, they are going to be much more darker due to the change of layers). The layer for the armor has also been edited and the bottom corners will have the bottom palette much more concentrated (i.e. #Gamemaker studio 2 change instance layer code#The latter is why this is temporary code because if you do want to make the four new layers all black but not everything else, this will not be accepted by the code unless you, at minimum, use a very marginal amount of light in at least one corner of one layer This isn't a 100% solution as the gradients are also being taken as is and the way it detects if they have not been edited is if all four layers are completely black. Temporary code has been added to detect if the new layers have not been edited and take the appropriate colors from the old palette. With this in mind, these layers are being added in a way that simply overlaps on top of the old layers. #Gamemaker studio 2 change instance layer update#I'm sure you would prefer not to have them lost in the update and have to start all over again. One thing to note is for those who have already made custom colors for Enro. Enro has code for every instance required to draw him, and I had to go into every single one of these instances and update the code manually. I figured that since these were unique instances, unique code was required for each situation. What draws the sprites during gameplay is not the same for the sprites in the color editor. I'm sure there is a way to actually optimize a single script to work on all of them but the reason why I opted to use unique blocks of code for each instance is due to the way each instance is coded. There are so far 5 different instances where the layers come into play and have to be drawn. If you want to change the inheritance of any layers then you can select them and then toggle the inheritance button to switch inheritance on/off for that layer, or you can use < Shift > or < Control > and left click on multiple layers to select them all and toggle their inheritance.The code is not universal as different instances require different code when they are drawing sprites. I decided that the last four layers will be the straps on his armor, the mid-section (which my concept artist originally intended to be a plate of some kind), his shirt, and his skirt.Īfter that was done, I had to update the code next.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |