Tobey
Member
So basically what I'm trying to do is create a shadow as if the light source was behind everything like this:
However, I need this to show everything such as the sword swing which does work but the swinging arm is a separate sprite, so when I draw the shading for it, it looks like this:
As you can see, the body shadow is darker where the sword shadow is. So how would I fix this? I have been trying different things for a while such as blend modes, this didn't work (but that could have been because I don't really understand blend modes).
Here's the code which is in the draw event of the player:
However, I need this to show everything such as the sword swing which does work but the swinging arm is a separate sprite, so when I draw the shading for it, it looks like this:
As you can see, the body shadow is darker where the sword shadow is. So how would I fix this? I have been trying different things for a while such as blend modes, this didn't work (but that could have been because I don't really understand blend modes).
Here's the code which is in the draw event of the player:
Code:
draw_self();
draw_sprite_ext(sprite_index, image_index, x, y, -1, 0.9, 180, c_black, 0.5);
if(instance_exists(obj_player_back_arm)){
draw_sprite_ext(player_back_arm, 0, x + 11, y + 56, 1, -0.9, -obj_player_back_arm.image_angle, c_black, 0.5);
}
if(instance_exists(obj_player_front_arm)){
draw_sprite_ext(player_front_arm, 0, x - 16, y + 57, 1, -0.9, -obj_player_front_arm.image_angle, c_black, 0.5);
}
if(instance_exists(obj_player_left_arm)){
draw_sprite_ext(player_left_arm, 0, x, y + 54, 1, -0.9, -obj_player_left_arm.image_angle, c_black, 0.5);
}
if(instance_exists(obj_player_right_arm)){
draw_sprite_ext(player_right_arm, 0, x, y + 54, 1, -0.9, -obj_player_right_arm.image_angle, c_black, 0.5);
}