text

  1. I

    GML Fonts not working... but only in certain places

    Hey all. I'm running into an issue with my fonts. I have 10 buttons for a level select - each one is using a base class for buttons that has a defined "button_text" string variable to draw as text. Here is the parent's class draw event: draw_self(); //draw self draw_set_font(fnt_btn); //set...
  2. J

    New Game Menu bug

    I'm trying do a menu for my game, but, when i click on "New Game", the window don't centralize with the text, here the pictures and the codes: obj_newgame Create //Criando as opções em um Array (Array é um conjunto de váriaveis em uma) opcoes = ["Novo jogo","Cancelar"]; //Diz qual opcao vai...
  3. R

    Draw Save Icon

    Hi all, Pretty new to Game Maker, this is my first real project I have been working on and I would like help displaying a quick 2/3 second sprite or string of text each time the save function is performed by the player, I am open to using an object, sprite or text string on the top right hand...
  4. J

    GML Visual [SOLVED] How to tell object which instance created it? -DND

    Is there a dnd way of telling an object which object created? Like I need to add an object that draws "+1" on screen at an object every time it spawns, but the "+1" changes depending on the object that created it like: obj1 = draw "+1"..... obj2= draw "+5". Is there an easy way of finding the...
  5. MedicOnFire

    SOLVED Queued Text Boxes Using An Array of Structs

    Hello! I am trying to create a text box system in my game where multiple messages can be stored and displayed in sequential order. I have been following a tutorial that helped me write out the code for an object (titled _obj_TEXT) that would display a singular box with some text in it. For...
  6. 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...
  7. R

    Create text in corner

    Hello! Me and a friend is working on a game right now and we're both really new to GameMaker. We would like to add in a small text in the corner of our rooms ("R - Restart" on one row, "Esc - Leave" on the next). Can anyone just help us out with the coding for that? Thank you!
  8. H

    SOLVED A weird dialogue text printing issue in specific rooms

    Hello. I don't know if any of you might help, because this issue is very strange, but I'll still give it a shot. I have a dialogue system set up and if player starts a conversation somewhere in the world the text, spacing, borders etc are fine (picture 1). But for some reason when I enter the...
  9. R

    Line spacing in text camp

    Hey, newbie here so excuse me if I make any rookie mistakes when writing this. I'm participating in an app/game development for a school project. One of the planned features is a journal/notebook space, where the user can write text in a limited space. The handling of the writing, drawing, and...
  10. L

    GameMaker Rendering symbols in GMS2- help

    Hi, I have some symbols I want to render in my game. They render fine in the programming area so it's odd that they wouldn't otherwise render in game. I've tried using several fonts... Is this just not possible? I'm attaching two images, the first shows the symbols rendered in the programming...
  11. T

    GameMaker Text in sequence editor looks fine but not in game

    Hi. My game is at the very tail-end of development. All content is finished and I'm literally just putting the final pieces together before release. I'm currently finishing up the credits, but have run into a really frustrating issue. I've made the credits sequence using the sequence editor...
  12. B

    Using fonts on low-resolution pixel-perfect viewports?

    Hi, so up to this point I have been basing all of my GUI off of resolution size. Positioning an element in the middle of the screen at (resolution.x/2, resolution.y/2), resizing GUI elements by diving by defaults like reso.x/1920, reso.y/1080, etc. However I have rotating pixel art, so in order...
  13. 2

    font

    I don't have set fonts for my game. When I make a new font (fnt_points) for a certain text string and set the font to draw that font my whole project get changed to that certain font. How to fix its only one certain object/text that get affected by my new font? And by default dont use any font...
  14. R

    Text is not drawn

    I have this problem I want to draw the rectangle with the text when I click with the mouse but only the rectangle is drawn, what could be the error? draw_set_font(font_button); draw_set_color(c_white); draw_rectangle(50, 50, room_width - 50, room_height - 50, false)...
  15. R

    Windows Line break

    Hello everyone, I need help with my code regarding a line break in a textbox. Well, I'm creating an interface for my game that will be a small tutorial for the player, and it will appear on a screen like this (Illustrative image of how the separation of the text with the margin will look): I...
  16. David Lorenz

    GML SDF Font drawn on Surfaces appears distorted

    Hello, everyone! I have Menus with a lot of pages of scrollable text. In order to optimize, I draw everything on different surfaces only one time and then draw the surfaces, getting much higher FPS. I recently started using a SDF Font to get a sharper pixelated look, but when I use it on...
  17. R

    SOLVED Dynamically changing hp text

    I want to do rolling hp meter using text. Text should change itself as hp decreases. I calculate hp in the player object, and draw it in the battle object. I wrote some code, but i have problem with the while loop. //Player object //Variables global.hp = 30 global.bulletdmg = 12 global.def = 3...
  18. G

    SOLVED Drop shadow/outline on transparent text?

    I was trying different methods of making text more readable over any background, and figured outlines and/or drop shadows would be a good place to start. At first I did this by just drawing the text multiple times with offsets and it did the trick at first, until I realized that it made it even...
  19. R

    SOLVED text box

    Hello everyone, I need help creating a textbox for my new project I'm working on. Well, I was creating a prettier interface for my game to pass a description to play over some items, so I decided to make a text box to look cool. This code works but not 100%, has some visual errors or ends up...
  20. Kleff

     Translate text help, En, De, Fr

    Hello all together. I need help for text translations. I don't want to make a mistake. if anyone has time to look over this it would help me a lot thank you very much //// Game 1 Displays Control switch (_languard){ case "en": var _text = "Put your finger on the display and press. Then...
Top