@gentle atlas ciotrisix's Question:
`I’m currently using game maker studio 2 for my game. I just finished adding some code in for my “ draw event “ in my “ obj_textbox “. When all of the sudden, the text glitches and appears as some sort of a black glitchy box as seen below.
Not sure how to resolve this, so I currently need help. I’ll gladly send in any of my code if there’s typos or something like that, but I’m definitely sure there is no typos considering I triple checked the code.`
It seems like you're experiencing a graphical glitch with the text in your game. Without seeing your code, it's difficult to pinpoint the exact issue. However, here are a few common causes and potential solutions:
-
Make sure you're using the correct drawing functions: Double-check that you're using the appropriate functions to draw text in GameMaker Studio 2, such as draw_text() or draw_text_ext(). Using unsupported or incorrect functions could lead to unexpected graphical glitches.
-
Check for conflicting drawing code: If you have multiple objects or scripts drawing to the same area of the screen, it's possible that there is a conflict causing the glitch. Ensure that there are no conflicting drawing operations or overlapping objects that might interfere with the text rendering.
-
Verify your font settings: Ensure that the font you are using is loaded correctly and that it supports the characters you're trying to display. You can check the font settings in the GameMaker Studio 2 IDE under the "Fonts" tab.
-
Check for transparency or blending issues: If your text appears as a black glitchy box, it could be due to transparency or blending issues. Verify that the alpha (transparency) values are set correctly for the objects, backgrounds, or surfaces involved in rendering the text.
If none of these suggestions resolve the issue, please provide the relevant code snippet for further assistance.