Legacy GM [SOLVED] Change opacity of an effect?

G

Gabriel

Guest
I wonder if there is any way to change the opacity of a particle effect on GMS.

I'm creating a "smoke up" effect on my game, but it looks too opaque and I wonder if there is any possibility of changing that.

The effect is created on an Alarm Event through the following code:
Code:
if chili == true
    {
        chili = false;
        var color = make_color_rgb(255, 62, 2);
        effect_create_above(ef_smokeup, x, y, 1, color);
        audio_play_sound(snd_burp, 1, false);
    }
 

kamiyasi

Member
I wonder if there is any way to change the opacity of a particle effect on GMS.

I'm creating a "smoke up" effect on my game, but it looks too opaque and I wonder if there is any possibility of changing that.

The effect is created on an Alarm Event through the following code:
Code:
if chili == true
    {
        chili = false;
        var color = make_color_rgb(255, 62, 2);
        effect_create_above(ef_smokeup, x, y, 1, color);
        audio_play_sound(snd_burp, 1, false);
    }
You need to create a custom particle system instead of using simple effects. Use part_type_alpha2(ind, alpha1, alpha2); to change the opacity. If you want to use simple effects, you can draw them to a surface and then draw the surface as semi-transparent.
 
G

Gabriel

Guest
You need to create a custom particle system instead of using simple effects. Use part_type_alpha2(ind, alpha1, alpha2); to change the opacity. If you want to use simple effects, you can draw them to a surface and then draw the surface as semi-transparent.
Awesome! Thanks ;)
 
Top