1. 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...
  2. K4st0r

    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...
  3. 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...
  4. 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: ___________________________________________...
  5. Writerstix77

    GMS 2 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] =...
  6. Kleber_Ferreira

    GMS 2 [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...
  7. Cupid Stunt

    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...
  8. 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?
  9. 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!
  10. 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
  11. 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.
  12. Warspite2

    GMS 2 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...
  13. 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...
  14. Xalezar

    HTML5 Is mp_potential_path not available for HTML5?

    Hi Everyone, I've been testing my game locally on the "Test" platform (set with the target icon in the upper right corner) and I am able to get my enemies to chase the player, but when I tested it on the "HTML5" platform, the motion planning function doesn't seem to have any effect and my...
  15. G

    Question - Code Help with view_xview and view_yview

    I am watching a tutorial () and the guy is using GameMaker: Studio not GameMaker: Studio 2 and I want to know how do I write draw_text(view_xview[0]+10, view_yview[0]+10, "Score: "+string(global.score)) I just need to know how to write the view_xview[0]+10 part. Thanks in advance.
  16. matharoo

    HTML5 [SOLVED] Undefined errors with draw_text()

    My game keeps throwing undefined errors on HTML5. The issue seems to be with draw_text_() functions. See this error in the console: The draw_text_center() script draws text using draw_text_transformed(). If I don't use that script and just use draw_text() instead, it throws an error as well...
  17. I

    Legacy GM [Solved]Having a log in a text box...

    Hey guys, this is driving me nuts. I drew a box on the top of my screen. And I wanted it to be always filled with notes. Like when you're walking up to a chest it says: "It's a chest! Press O to open, press L to leave it alone!" or when you bump into a wall it says "BUMP!" So I made a drag and...
  18. lukbebalduke

    Question - IDE Special Characters not being drawn ( even in the range)

    So, I need my game to work in many different languages, and one of them is portuguese, which includes characters like Ç, Ã and stuff like that. I know that the very first thing I need to do is to set up a font within a range that supports those characters, and I did it. But when I execute...
  19. N

    GMS 2 [SOLVED] Writing "Extended Latin" characters with draw_text

    Hey, I have a problem. I want to write characters from other languages using the draw_text command, but instead of displaying a character such as "ł" or "ę", it just doesn't display anything. So instead of displaying "Dźwięki WYŁ", it displays "Dwiki WY" Any help? draw_text(x-112,y-12,"Dźwięki...
  20. N

    Legacy GM Draw text issues.

    When I use the draw_text_transformed_colour(), sometimes, there's a bit of text that cut off at the bottom. In the picture I attached, you can see it the most under the '0's. I'm using an free use font called Roboto, and this is the call I'm using: roboto = font_add("Roboto-Black.ttf", 26...