A
Anti-Icarus
Guest
In following along an old tutorial on how to create a 3D FPS in GM:S, I've encountered an issue in which the GUI is not displaying properly. Here is an image of an FPS when it was made in GameMaker 8:
And here is a screenshot of the FPS I made in GameMaker: Studio:
As you can see, the GUI in the former does not display as well as the latter did. I'm sure I need to add something else to the code in my gun object's draw event but it's hard to say what. At the time of this writing, that code looks like this:
How can I get the GUI to display properly in 3D mode so that it won't come out all black?
And here is a screenshot of the FPS I made in GameMaker: Studio:
As you can see, the GUI in the former does not display as well as the latter did. I'm sure I need to add something else to the code in my gun object's draw event but it's hard to say what. At the time of this writing, that code looks like this:
Code:
d3d_set_projection_ortho(0, 0, 640, 480, 0);
d3d_set_hidden(false);
draw_sprite_ext(spr_shotgun, -1, 0, 224, 2, 2, 0, c_white, 1);
draw_set_alpha(0.4);
draw_healthbar(5, 460, 100, 475, health, c_black, c_red, c_lime, 0, true, true);
draw_set_alpha(1);
d3d_set_hidden(true);