GM:S 1.4 c_ Not working?

Discussion in 'Programming' started by Dropsuitcaptain, Feb 21, 2019.

  1. Dropsuitcaptain

    Dropsuitcaptain Member

    Joined:
    Feb 8, 2019
    Posts:
    23
    I'm trying to make it so that when my enemy dies it creates an effect that's red and it just isn't working.
    Here's my enemy destroy code:
    Code:
    effect_create_above(ef_explosion,x,y,1,c_maroon);
    All I need it to do is create an effect with the color I want but that doesn't work.
    Any help would be appreciated!
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,536
    Never say "doesn't work". It's a clear sign that you have to provide a substantial additional amount of information.

    Specifically, which part of this doesn't work? Is the color wrong? (If so, what is the color the effect actually appears as?) If not, what else is not working as intended?
     
  3. Dropsuitcaptain

    Dropsuitcaptain Member

    Joined:
    Feb 8, 2019
    Posts:
    23
    Sorry for me not providing enough info.

    Yes the color is wrong its blue when I set it to maroon.
    It creates a blue explosion.
     
  4. marasovec

    marasovec Member

    Joined:
    Sep 15, 2016
    Posts:
    307
    Try to make the color manually: make_colour_rgb(128, 0, 0);
     
  5. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    6,627
    Could be the color bug. Maybe they switched something around to RGB format instead of BGR. lol
     
  6. Dropsuitcaptain

    Dropsuitcaptain Member

    Joined:
    Feb 8, 2019
    Posts:
    23
    Tried it and it didn't work
    Code:
    effect_create_above(ef_explosion,x,y,1,make_colour_rgb(128,0,0));
     
  7. FrostyCat

    FrostyCat Member

    Joined:
    Jun 26, 2016
    Posts:
    4,304
    There have been reports of flipped colour values for that function on 1.4.9999, and workarounds like this are the only viable alternatives at the moment. GMS 1.4 is way past sunset and you should not expect any further action.
     
  8. Dropsuitcaptain

    Dropsuitcaptain Member

    Joined:
    Feb 8, 2019
    Posts:
    23
    It worked thank you so much!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice