N
NilsRungholm
Guest
Seemingly, the colours you pick in an object's Variable Definitions in the IDE (also called Object Variables - very confusing), are not actually valid colours in GML. The colour picker creates a HEX-colour in the format #RRGGBBAA, while GML expects either a color made through make_color() or similar, or a HEX-colour in the format $BBGGRR (all lowercase). See Help -> 'Scripting' -> 'GML Reference' -> 'Drawing' -> 'Color'.
The problem becomes evident when (for instance) trying to set image_blend, like below. The blend that is applied to the object's sprite simply don't match the colour I picked - it's interpreted as something else.
I like the idea of GM:S2's new Variable Definitions, but... What on earth am I missing here? Is there a global setting for interpreting HEX-colours that I'm not aware of? Or did YoYo's QA-team just completely miss the fact that they implemented a useless colour-picker?
The problem becomes evident when (for instance) trying to set image_blend, like below. The blend that is applied to the object's sprite simply don't match the colour I picked - it's interpreted as something else.
I like the idea of GM:S2's new Variable Definitions, but... What on earth am I missing here? Is there a global setting for interpreting HEX-colours that I'm not aware of? Or did YoYo's QA-team just completely miss the fact that they implemented a useless colour-picker?