draw text

  1. E

    Fonts in GameMaker 2

    Guys, I would like to know how I could change the font of the draw_text_transformed_color function, because even though I tried to search and search, I didn't find a simple and explained way of how to do this correctly, could anyone help me with this?
  2. MrBrainMatter

    GML Draw Mouse Over Help!

    Im trying to make it do this command draw_set_color(c_black); draw_text(x-15,y+35,"Upgrade " + string(cost)); draw_set_color(c_white); When The Mouse Is Over It I originally used // Code In Draw Event if(mouseOver(x,y,sprite_width,sprite_height)) { draw_set_color(c_black)...
  3. J

    SOLVED Draw text change position with gmnet

    Hello, I'm starting a project with Gmnet and it happens that with the player that I created the server, the draw text works fine but the one that connects to the server draws the draw text higher than the original. it only happens with draw text, for example draw sprites and draw lines works...
  4. E

    Draw text when mouse is over object

    Hi! I am new to GML and I need help with this: I want to show a text when mouse is over an object, but I don't know why it isn't working... Edit: I tried with draw_set_color(c_black) too
  5. E

    Windows [SOLVED] "unable to convert string to int64" error

    Hi! So for a while I've been making a dialogue system for my game. I left it in a pretty barebones but working state a month or so ago, and now I wanted to add some more sprites and visual polishes to it so I started to work on it again. However, whenever I try to print two different options for...
  6. J

    GameMaker Text is deleted after new object

    Hi Guys, I have three test objects each with a draw event. If one of the objects is set, the text is also set, but the text of object 1 is deleted as soon as object 2 is placed. What is my mistake? draw_self(); draw_set_font(fnt_CourierNew_Bold); // floor name draw_text(global.lastFloorNameX...
  7. J

    GameMaker [SOLVED] Draw text on object doesnt work

    Hi Guys, In my script, two objects are placed in a desired position. After both have been placed, a text is to be generated. However, my text is never created. There are no error messages. All arguments are given and set. I hope you can help me on. My Code floorDefault_x = argument0...
  8. S

    GML Visual Need some help with DnD (Newbie)

    Hi guys I've decided to make a game in GM, and I'm finding myself struggling with the DnD. Problem 1 : Want the player to stop moving when a text box is shown. Problem 2 : "E" for more text. (I already got the text box and text to show on collision with the player, and managed to use DnD to...
  9. V

    Global variables not working

    Hello, I am trying to make a game where the player falls from the top of the screen, collecting letters along the way. I have a text set up in the corner where I'm trying to have a fraction display the amount of letters collected/left. I'm using the following code inside a spawner object's draw...
  10. G

    Legacy GM Drawing Special Characters

    How's it going guy? Probably a stupid question, but how can I use draw_text to draw special characters to the game window? I'm storing the time of day (hours & minutes) into variables, and then want to disply them on screen seperatedby a semicolon. I have tried both these methods...
  11. S

    GameMaker [SOLVED] How to Detect the Amount of Lines in a String

    I'm using the function: "draw_text_ext_transformed" Its odd, some things behave differently than I expected, but overall I get it. However, I need to detect how many lines are drawn with randomly sized strings of different words. With the "width" argument in this function, you can specify how...
Top