gasilboomer.blogg.se

Gamemaker docs2 get hue
Gamemaker docs2 get hue













gamemaker docs2 get hue

GAMEMAKER DOCS2 GET HUE CODE

I was used tu use 'objname.varname' in the code of an object to get the variable of an diferent object. I'm on mobile now, so apologies for the lack of actual code examples. Objects refuse to get variables from other objects. You should at least draw the values of src and dest, but even easier would be to create a couple switch statements to check which blend modes each one equals, then draw the name of the blend mode as a string. Of course, to know which modes are active, you'll want to create a little debug info for yourself.

gamemaker docs2 get hue

Now, set your blend mode src and dest arguments to the variables you created.įrom here you can go in-game and test out blend mode combinations until you find one that works! Make sure you also have an 'if' statement to check if the value is greater or less than the acceptable range, and loop around if so. Map the up and down arrows to add +1 or -1 to src, and right and left to add +1 and -1 to dest. This is the 'pure' colour tone which is part of the hue, saturation and value (luminosity) method for defining a colour. I think it was something like 0-21 since there's src and dest variants for each.) This function will return the hue of the given colour. in game maker 1.4 we were able to change the background by using backgroundindex but this is not available in game maker 2 now. (It's been a while since I've done this, so I don't have the values off the top of my head. To start, make a draw event in the object you want to change colour. You can use this to your advantage to make testing easier.įirst, draw the blend mode constants as text with the string() function to figure out what the values of all the blend modes are.















Gamemaker docs2 get hue