• 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!

draw_text

  1. G

    Prevent characters from drawing at sub-pixels?

    I'm trying to add support for both bit-fonts and higher res ones. To do this, I have the application window running at a higher resolution, and I'm scaling up the sprites. I've been able to avoid pixel stretching for sprites by keeping them at fixed integer points, but am having an issue with...
  2. M

    Why "draw" elements float on coordinates, and how to properly set it up in general?

    Greetings, can someone please help? This looks partly like a bug, or I definitely don't understand how it works in general 1. Is there any way to make the text line lie vertically in the middle of the coordinate? Currently, the "y" coordinate is the top line of the line, but I need it to be...
  3. jjjjj

    SOLVED Instance draws text but not sprite [Solved]

    SOLUTION The Challenge I have instances of an object that can successfully draw text and rectangles, but will not draw self or other sprites. I haven't run into this issue at all before (I have several other objects drawing just fine following the same model) and I haven't been a good enough...
  4. H

    GameMaker draw_text and draw_text_ext not working

    i have this code on draw event. draw_self(); draw_text(0, 0, "hello"); I have this simple code because I was testing. And when I play the game the text looks stretched and blurry. I tried changing the font but nothing worked, does anyone know what I could be doing wrong?
  5. Tmanpdx

    GameMaker Text on surfaces looks horrible. How to fix?

    Hi there, been playing around with surfaces and drawing text on them and they look absolutely horrible when compared to just drawing text on the default UI. I've played around and am using scribble for now, but have just used the default draw_text as well. Both have the same problem. In the...
  6. SohleKNKI

    Gamemaker string line break doesn't work

    There is this command: "draw_text_ext()" I know that the last argument is the width in pixels of the string before a line break. The Problem is that the line only breakes when the line contains a space. But when there is no spaces, the line just does not break. You see there is no...
  7. M

    Draw Text vs Draw Text Transformed - Performance Cost

    Is there a greater performance cost for using draw_text_transformed over draw_text?
  8. A

    draw_text using multiple colours ?

    Hello, I have made huge improvement with my very first game. However, I have encountered another "impossible problem". I am trying to draw recently gained score points for few seconds in different colour than is the original "Score:" text. (the "global.kill_y" is static number, because i did...
  9. K

    SOLVED Problem with Draw Text

    Hi! I'm making a Visual Novel on GMS:2 and i have a problem. Every time I use the draw_text (); in the draw event, it is centered in the middle instead of the upper left corner. Which is very annoying, because when using the typewriter effect the text is centered and ends up leaving the...
  10. TheRudolfGaming

    SOLVED string() adds unnecesary newline.

    Hello. I'm currently experiencing either a bug, undocumented behavior, or something completely out of my comprehension. In simple terms, I have a variable that stores the health for the player (health_var1) and I want to draw the value of it on an object that's going to be sort of the HUD/GUI...
  11. K

    String and Ds_Map

    Okay, Basically, what I'm trying to do is the following: I want to create a string that uses a variable in it. The variable is stored inside a Ds_Map When I try to run the game this happens: ___________________________________________...
  12. Writerstix77

    GameMaker Using called info in a 2D Array

    I have an array that is almost 100 units in height (and 3 in length). Here is just a sampling: TextBox [0,0] = Wrench_obj //The object that is hovered over. TextBox [0,1] = "Wrench: " //Name of item TextBox [0,2] = "A heavy tool used to work pipes." //Description of item. TextBox [1,0] =...
  13. K

    GameMaker [SOLVED] DoAdd :: Execution Error at draw+text

    The error below occurs when I run the game. I want to draw the score to the screen with the word Score before it. Drawing just the score variable to the screen shows no problem, adding the "Score: " string before it is causing the trouble and I don't know what's up. FATAL ERROR in action number...
  14. C

    GML [Solved] Zero Padding a number as a string

    I'm creating a clock for my game and I'm having issues with zero padding the numbers. I could use if statements and I will if necessary, but that's ugly code. In python I'd simply use: '{:02d}:{:02d}'.format(minutes, seconds) My output would be: 01:24 or 03:07 or 12:05 The point is to add the...
  15. Dr_Nomz

    Legacy GM [SOLVED] Can I give my text an outline? (draw_text/ext)

    I know I can do a lot with draw_text (and ext) but what about outlines? There's not a lot of contrast as is and I want to play around with it. Can I do that at all?
  16. A

    Windows Need help in drawing text

    Hello, I have just started using GameMaker studio 2 and I am not able to draw text at the corner of the screen in a way that it is fixed and won't move. Please reply soon. Thanks!
  17. O

    Windows [Solved] Cannot get draw_text to work

    I have uploaded my project and will greatly appreciate it if you can can help me? The code is not a lot, any help will be greatly appreciated please? https://drive.google.com/open?id=10lUAVrZEy9MbEaHg_16eg83-JqlJ9bdj
  18. P

    Time Between Texts

    Hey, I’m relatively new to GMS and I was wondering how to make a time in between two texts that appear onscreen. Example: “Hello, there!” (Wait three seconds) “Welcome to this test!” I understand I would probably need to use alarms, but I’m not sure how.
  19. Warspite2

    GameMaker draw_text with # to line break [SOLVED]

    draw_text (x,y,"this is confusing#anyone have an idea?"); Ok in gms 1.4 this would work. So what is the magic in gms 2 to simply get text to print on a second line, in other words a line break? I seen something about this I just don't remember where. I have dug around the manual and can't find...
  20. S

    having some trouble with draw text command *SOLVED*

    *SOLVED* I'm working on displaying some text when I press a button and then removing it when I press it again. I've been having problems getting it to work so I figured why not try it with just a simple press event. I added a key press - f3 event to my player object. I added the following...
Top