• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

iOS Unable to use blend modes properly in iOS. Help?

A

Aeronor

Guest
Hi, I am having a problem with brightening images in iOS using draw_set_blend_mode(). This function works perfectly for PC and Android, but gets almost completely ignored in iOS. According to the documentation, bm_add should work on iOS. The only thing that I can get to work is draw_self().

Here is what I'm doing that works fine, even on iOS:

Code:
draw_sprite(sprite_index, image_index, x, y)

draw_set_blend_mode(bm_add)
draw_self()
draw_set_blend_mode(bm_normal)
However, if I want to manipulate the sprite in any way, or draw a different sprite, or use literally any draw function other than draw_self(), it doesn't work.

For example, this code below will not brighten on iOS, even though I'm just using default values for the draw function:

Code:
draw_sprite(sprite_index, image_index, x, y)

draw_set_blend_mode(bm_add)
draw_sprite(sprite_index, image_index, x, y)
draw_set_blend_mode(bm_normal)
Does anyone have any advice that could help me?
 
Top