• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

color

  1. A

    Free Shift & Dodge

    Shift & Dodge is a simple but powerful time waster. The object of the game is to break the bricks falling towards you that match the color of your hat at the moment, while dodging all other bricks. Your hat changes color every time you run into a falling gem, switching your target boxes to...
  2. Kuny

    Steam Take the Cake

    Try demo! (click here) Get full version on Steam! Get full version on Itch.io! Such a beautiful and delicious cake … but where did it come from? Why did the robots steal it? You must help Frank the Friendly Furball take back the cake. It’s far too precious! Webpage...
  3. L

    Legacy GM Invert Colors With Code

    So in my game, I have found one way to invert colors by using the sprites but what I want to do involves lots of objects to do that and makes the game lag. So I was wondering if someone could help me find a way to make code that inverts colors in game maker using code to make the game less laggy
  4. E

    Legacy GM Colour Cycle [SOLVED]

    Hi, Im reviving an old thread I made here before... but Im confused and cant get it to work again! I want my sprite to cycle through the colours... but what seems to be happening is, when the game starts, its randomly picking a colour and not changing... here's what I was trying: object's...
  5. H

    Changing Colors in your Game

    Hey there, i am wondering how i can add color to my game, for example making it only black and white, or negativ. Also i want to change the color by every time an enemy gets destroyed. Does someone has experience with this? Thanks
  6. Cloaked Games

    GMS 2 Color Components from Buffer

    Hello, I am using buffer_get_surface to read color data for a sprite. However, I do not know how to get the color components from the color itself. I tried using color_get, which worked when I was using draw_getpixel, but seems to be always returning 0 in this situation. Here is the relevant...
  7. matharoo

    Asset - Shaders Matharoo's Outline Shader

    This is my outline shader. It has customizable thickness, quality and color. It works with surfaces too. DOWNLOAD LINK I'm not experienced with shaders, so some of you advanced users might spot something stupid in the code. If that is the case, please do tell me, I'd love to improve it! If...
  8. W

    Legacy GM How to make colour splashes reveal invisible walls/objects?

    Hello! Im trying to make a game where you are a paint blob and you have to walk/slide around and get paint on the invisible wall/objects to see where you are going. I don't know how I would go about making the colour 'stain' the invisible object. How would I also go about making it so the ball...
  9. E

    Legacy GM Change Color Issue

    Hello! I am trying to make a program that draws pixel by pixel but for some reason, I can't change the color? Here is the code: DRAW: draw_self() draw_text(room_width/2,room_height/2,"O") if(global.drawdot = true and global.penon = true) { surface_set_target(surface)...
  10. D

    Discussion Switching GMS2 from BGR to standard RGB

    I know this conversation has been had, and @Mike has made it clear that it will never happen, but I really think GMS2 should switch to using RGB instead of BGR. (For the uninformed - the image editor uses RGB, but setting a hex color in your code is expected to be in BGR format). The main...
  11. L

    Asset - Extension Lerner HTML Colors

    Color is one of the basic things a developer needs to bring life to a game. But creating colors manually is very tedious. Instead of reinventing the wheel, Lerner HTML Colors lets you use the standard HTML color pallet, plus some extra variations. All the 140+ colors from the HTML pallet are...
  12. L

    Legacy GM Going through a block

    I don't know how to explain it but I have two of the same objects in a room one has an image index of 0 the other of 1. The background is black. When image index is 1 the color is white and when image index is 0 the color is black. I want the player to colloid with the white but not the black...
  13. ArtCode

    Legacy GM Background colors aren't good/smooth on Android...

    Hello to everyone, I'm trying to create a little game on Android, but I'm having a little problem. The background colors aren't good and smooth like on my WINDOWS export... why? Here, take a look. The first one is on Android. The second one is on Windows. Notice that the colors aren't scaling...
  14. XirmiX

    Legacy GM Can I change the color of code-search highlight? It's too bright!

    This: I can't find it in preferences. Is there a way to change it? My eyes are bleeding from such a bright lime colour just standing out among everything, especially when comments, which are green, are selected.
  15. D

    Windows Colors: Chromatics - Color Based JRPG Style Game

    Colors: Chromatics is a JRPG centered around colors and darkness. The world turns black and white overnight. What is going on? Its up to you to figure out and finding other survivors of this mysterious event. In battles, you can change the color of the batlefield with your "soul color", this...
  16. 2

    Possible? Turn on Pixel Color Interpolation for one Object Off, On for Another Same Frame

    Is it possible to turn on and off pixel color interpolation for a single object, or many but not all objects in the same frame? Things in the process of scaling or rotating look better with it on, but more blurry so that they look worse if they're not currently changing values in either of these...
  17. 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...
  18. 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...
  19. 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.
  20. 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...
Top