• 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. N

    Text won't draw.

    I've gone through the things in this post: http://gmc.yoyogames.com/index.php?showtopic=512699 Nothing. No text. This is the code I'm using on create: draw_text(10, 10,"test"); I tried not using code, but instead using the draw text function found under draw. Still, nothing. I also tried...
  2. L

    Font allignment problem

    I don't know how the "fa_bottom" constant works. For example if I use this code...: draw_set_valign(fa_bottom) draw_set_halign(fa_right) draw_text(room_width,room_height,"test") game maker draws the text like 4/8 pixel above the bottom right corner and I can't understand why. Gamemaker draws...
  3. L

    Windows Please help with "draw_text" and "view_angle" :(

    Hello everybody! Look, I have a problem with drawing a text on Draw Event and adding a rotation to my room For the text I use: //Create global.score = 0 //Draw Event draw_set_font(fnt_score) draw_set_halign(fa_center) draw_set_color(c_white) draw_text_outline(room_width/2, 200...
  4. B

    Simple Cursor

    Does anyone know how to make a simple cursor for the draw_text function? It doesn't need to do anything fancy like backspace or whatever, all it needs to do it exist and follow the text that the player is typing, just like the one you will write in the replies to this post ;) Example...
  5. G

    How do I draw text from script? [SOLVED]

    Not sure what I'm doing wrong but I can't figure out why my text isn't showing up. I have a script (file) called TileClicked and I call it from a 'mouse pressed' event. The message "making it here" shows up in the console output so what sorts of things should I be looking for...
  6. S

    Legacy GM Draw_sprite/text location on GUI surface / GUI Surface Dimensions windowed vs fullscreen

    control object on create event: music = true; draw_set_font(fnt_options); draw_set_halign(fa_left); width = sprite_get_width(spr_tickbox)/2; height = sprite_get_height(spr_tickbox)/2; draw gui event: draw_text(96,192,'Music'); draw_sprite(spr_tickbox,0,256,217); if music == true {...
  7. S

    Can´t draw text in new Surface

    This is the code... surf_temp = surface_create(800,1280); surface_set_target(surf_temp); draw_sprite(spr_share,0,0,0); draw_sprite(spr_icon,0,400,225); surface_save_part(surf_temp,"share.png", 0, 0,800,450); surface_reset_target(); This works fine, the output "share.png" has the image...
  8. M

    Legacy GM Wrong sprites and text drawing on surface

    I'm trying to draw a character and stats associated with it as an overlap of custom features that are separate sprites. Those sprites each have different colored images whose index is stored in a grid. Each column corresponds to a different character and each row value is the image index for...
  9. L

    2 views, draw_text in one and hide in another

    Alright so I have 2 views in my game, making a splitscreen effect. One view follows player one and the other follows player two. I want them to have their own kill counter at the bottom right of their view with draw_text, However since both views move in the same room, the problem I come across...
  10. M

    Legacy GM Issues with adding to lists and displaying the values

    I'm trying to make several list with string and integer values and a grid with integer values, whose values are added to the respective data structures every time I click a menu button. The values are created randomly prior to adding them. When it comes to displaying the results, the grid works...
  11. Heavybrush

    how to clear a text or change it

    Hi, I have a problem trying to change a text generated by a for loop ///draw slots draw_set_halign(fa_left); draw_set_valign(fa_middle); draw_set_font(fnt_damageinc); draw_set_color(c_white); var m; for (m = 0; m < array_length_1d(saveload); m+=1) { draw_text_transformed(x,y + (m *...
  12. K

    Legacy GM How to draw a boolean as a word.

    When I try to draw a boolean in my options menu, it just displays as a 1 or 0.
  13. M

    Legacy GM Fading out Text > Fading in Text

    Okay this was bugging me for 2 days straight and i have a grasp of it, but can't seem to really fix it. What i want to do is fade in the text(_image_0_alpha += 0.1) and display the text for a set amount of time (Alarm) then it fades out (_image_0_alpha -= 0.1) and displays another string of text...
  14. A

    Legacy GM Some UTF8 characters will not draw

    I want to draw characters like these: ⌒_⌒ ^ω^ (o︶︹︺) (」゜ロ゜)」 I made a font and added the appropriate ranges for all the neccessary characters. Unfortunately, not all of them are visible in the font (I tried other fonts, but the problem persists) The font I would like to use is Gargle Rg, but...
  15. L

    Windows Updating a Draw text?

    hello. I am trying to make the 20 under the word health change to a 19 if you accidentally click on the dog in the middle... i have gone about it in many ways, however, none of them have worked. one thing i tried is HP as a Global variable set to 20 in the dog object i have left pressed ~>...
  16. L

    Windows draw_text dosnt work?

    Hello. I have tried multiple times to get a string of text (in the color white) at a location on the screen, with no result. what I am trying to achieve is a number to serve as a health counter using a number instead of a more modern health bar or hearts for health. I am trying to make a game...
Top