1. 2

    GML Get Built in GM Color Name from String and Translate to Use in draw_set_color

    I'm working on textbox that allows for different colored text in one message. I draw each letter one by one and repeatedly loop each frame. I want to be able to change part of a string's color by writing something like /c_red/ in the text and checking for /c and then getting the rest of the...
  2. Shadowblitz16

    GMS 2 get closest color in array of colors or black?

    hello I am looping through the array of colors and trying to check what color is the closest, and if it is return the index of the color for storing. however my code doesn't seem to work. it alway returns black or (0,0,0) can someone tell me why? /// @desc color_closest_pal() /// @param color...
  3. P

    colour coded scripting (SOLVED)

    Hi, I'm new to Game Maker, I'm using Game Maker Studio 2, free trial version. Is there anywhere that explains what the different coloured expressions in GML mean? I've been wandering around the website for ages and haven't found any explaination of what the colours mean.
  4. T

    Legacy GM Creating Hex color codes - concatenating a number and "$"?

    Ok so my issue is that I am trying to generate my own hex values to put into a draw_sprite_ext function. Now generating them is all good but the issue is actually getting them into the function. The main issue is how when putting a hex value in the draw_sprite_ext function you need to have a...
  5. P

    Ordering of Instance_Create

    I am currently trying to make a drawing game and i am still fairly new to game maker. I have made it so that when the left mouse button is held, an new instance is created drawing a line.However, when working with other colours, the layering is in the order of the the code. E.g if...
  6. Jared Johnson

    Color math help please!

    I'm using GM8. I need to figure out what color to blend with while drawing a colorless sprite to match the same colorless sprite drawn with one color to a surface, and then the surface is blended with another color. I have to do it this way, I cannot draw the shape to the surface already...
  7. sercan

    Android sprite_create_from_surface problem

    var surf; surf = application_surface; surface_set_target(surf); spr_test = sprite_create_from_surface(surf,0,0,480,800,false,false,0,0); sprite_save(spr_test,0,path); surface_reset_target(); this is the code i use to get a sprite from a created surface. In created sprite, the color pixels which...
  8. S

    Legacy GM Custom Font Help

    I created a sprites for the numbers 0-9 and made a font out of the using font_add_sprite. All is well except my sprite numbers were in color and GM makes the numbers just black. How do I fix this?
  9. gitwalrus

    Question - IDE Color palette in image editor.

    In the color panel in the new image editor I can't get the color palette import to work. When I try to get the color palette from my sprite nothing happens. Is there supposed to be a change? Thanks, Philip
  10. Narayan Lewandowski

    GML [SOLVED] gml blendmode that only effects hue?

    I don't even know if its possible with blendmodes (tbh I don't really get the gml blendmodes), but I need to basically need to set the hue of everything drawn on screen to a certain color. I though i could put gpu_set_blendmode_ext(something, something); draw_clear(col)...
  11. Misu

    Shaders Shader not picking up color from another sampler

    I am working on a very complex shader as an experiment with 3D shadering. At this point, the shader I wrote came out excellent base on my calculations. However, it is not working. I tried testing out each algorithm in the fragment shader to see which line is working or not, and I reach my...
  12. Wuzzems

    Legacy GM [SOLVED] Random Background Blend

    backgroundcolor[0] = background_blend[0] = c_white; backgroundcolor[1] = background_blend[0] = c_red; backgroundcolor[2] = background_blend[0] = c_orange; backgroundcolor[3] = background_blend[0] = c_yellow; backgroundcolor[4] = background_blend[0] = c_green; backgroundcolor[5] =...
  13. R

    Windows Changing colors for a character creation screen(HSV) - Keeping the outline untouched[SOLVED]

    I want to change the color of an image with some programmed bars where you can change the HSV. I don't want the outline to be affected. Is there a way where the grey outline can be "untouched" in this process? Somthing like take this image change the HSV but keep this color untouched. I think...
  14. S

    GML Using RGB values in sprites to apply attributes?

    Hello everyone! I don't have any code right now, but i'm curious if it's possible to do this with gamemaker. If any of you played the original total war games you'd maybe know about how regions are made? If not it's fine. I'm wondering if i can give RGB values attributes. (Examples below) R...
  15. W

    Legacy GM Color pallet always out of order

    Hi, I have been using Game Maker Studio for years now and my color pallet always becomes disorganized after opening the image editor second time. For example, the first time I open the editor, the pallet always looks like this: However, when I open the editor a second time, it will look...
  16. RhyminGarFunkle

    Question - IDE Replace transparent color on same layer in image editor

    Is there any functionality similar to the "color mode: blend/replace" dialog from the image editor in GMS1? It doesn't appear that there is any easy way to, say, replace a couple opaque pixels with semi-transparent ones, or replace semi-transparent pixels of one color with another. If you try to...
  17. L

    Windows Help with Blending Mode

    I need help with creating a vignette on my gui layer. I have a sprite and it starts off white and goes to black. I cannot seem to make the black transparent. help?
  18. B

    Question - Code Why are hex colours #BBGGRR instead of #RRGGBB?

    Just curious as to why GMS uses hexadecimal colours in the format of Blue/Green/Red rather than Red/Green/Blue like most other programs and languages use? Its just a bit confusing to me and to other's I would imagine.
  19. Neptune

    Asset - Project Powerful Dialogue Engine (Video Included)

    String Bean is an original, powerful, flexible and easy to use Text Engine coded entirely in GML. Marketplace for GM 2: Marketplace for GM:S: The core of String Bean consists of...
  20. V

    What exactly does "Color Only" do for the paint bucket tool?

    I know that tolerance changes how exact the fill tool will affect pixels but what exactly does color only do? i cant find a description of it anywere