draw

  1. F

    Mac OSX Printing Out Wrong Array

    Hey guys I'm new to Game Maker Studio and new to the language. I'm making a game and have been working on the dialogue system. This chunk of code was designed for characters respond to a set of choices, the dialogue starts by printing out the first element of the line_array, which it does, then...
  2. duran can

    GameMaker How can I draw an object only on the surface?

    I am a former game maker user, so I forgot too many techniques in gml. I want to draw an object only in the surface. But that object should be drawn with the entire draw event. Because if the object has draw_text in the draw event, I want it to be drawn. When I remove the draw event of the...
  3. Posho

    Windows Proper Progress Display Within Loop?

    Hello, Hope you're all comfy and safe at home. I'm working on a project that exports like a thousand images upon clicking a button in-game. The game freezes until all images are exported, which takes about 15 seconds. As of now, I keep track of the exportation's progress by writing to the...
  4. flyinian

    SOLVED Sprite sub image not updating correctly.

    Everything worked fine before I started moving code around. Not sure what i did. What i'm trying to do: I have a button, if player don't meet the requirement display sub image 0 and display a can't use message. //This seems to work as intended. if the player meets the requirements and hasn't...
  5. V

    Stretching the view using a shader to create a perspective/endless horizon effect.

    Hi everyone, (example) I'm using GMS 1.4 and am currently working on a 2.5d open world game. A view follows the player and the objects that come into said view from the top need to be stretched or scaled in such a way (like Mode 7). The issue is i can't seem to find any tutorials on the...
  6. A

    SOLVED Should I give up on this trivial problem?

    Hey community ! I've been running circles trying to get this really insignificant thing to work, but now it seems like I've become obsessed.. Sigh, but I'm thinking of just letting it go 'cause it's causing unnecessary frustration.. Basically, I'm trying to get one single sprite, (background...
  7. A

    Newb question: How to draw onto a surface?

    Hi! I'm trying to understand surfaces, not the application_surface, but rather an individual surface that I can manipulate.. This is probably a beginner question, but, as the title suggests, how do I draw onto a surface? More specifically, how do I draw my Layer background sprite onto its own...
  8. M

    weird alpha during pause?

    Hey, so I implemented pause in my game with following codes: obj_pause: Create paused = false; scrn = -1; Alarm 0 scrn = sprite_create_from_surface(application_surface,0,0,surface_get_width(application_surface),surface_get_height(application_surface),0,1,0,0); instance_deactivate_all(true)...
  9. M

    Pausing the game doesn't draw the paused game background

    I'm using the following code to pause the game, it works fine and all, but the one quirk i cant seem to fix is that the while pausing the game takes a screenshot of the screen, it doesnt draw that screenshot to the screen while paused (i want the paused game's background to show behind the...
  10. GGJuanPabon

    GML Draw the path that the object will follow.

    I would like to have an idea, that some expert illuminate me of what are the functions that I should use to draw and put styles. I have an object that goes from position A to position B, when I click the object draws the path, and goes to the position of the Click if it is free. So far normal...
  11. Tthecreator

    Legacy GM GM drawing acting in unexplainable ways

    Hi there! I was working on my UI asset and came across a weird bug I just cannot wrap my head around. I was making a function called draw_square_rounded_colour, which is a combination of draw_rectangle_colour and draw_roundrect. (draw_roundrect_colour only has 2 colors instead of 4). I...
  12. William Garrison

    GameMaker Referencing drawn layers

    Okay so is it possible (and if so how to go about it properly) to draw sprite items and then reference or move them individually in game when something happens? For example, lets say I have this... draw_sprite(info here); // top layer draw_sprite(info here); // mid layer draw_sprite(info here)...
  13. alexhinton

    GameMaker Quick Question on "image_blend" *solved*

    After using the image_blend under the draw event, do i have to reset the draw color back to white with draw_set_color(c_white) ? I know i should after setting the color to something other than white with the same function, just wasn't sure if image_blend also affected this. I'm trying to...
  14. sinigrimi

    Graphics how to draw realistic walk?

    How to make walking more realistic? Are there any ways to emphasize the beginning of the foot? share your experience please
  15. T

    Forcing a line break with draw_text_ext for strings without spaces?

    I have a system in place right now where the player can type out a string, it reads the keyboard_string input and draws it with draw_text_ext, with the width set to the length of the textbox. It works great, except for when it's spammed with a string with no spaces, then the line break doesn't...
  16. A

    GML [SOLVED] Draw tile set after player being idle for specific time

    Hi! I'm fairly new to GMS 2 and GML but I'm a quick learner. I've set-up basic animations for my player based on the direction it's going (8 directions). What I'd like to do is start a frame by frame animation from a given tile set after the player is idle for let's say 5 seconds. Here is...
  17. J

    Unable to draw sprite

    I have a player object that moves around the screen, and when Z is pressed, a sprite should be drawn in front of it. if keyboard_check(ord("Z")) { draw_sprite(spr_playerhead,0,obj_player.x,obj_player.y - 32); } Am I misinterpreting how draw_sprite works?
  18. S

    GameMaker How can I get the pixel on a certain layer?

    So I want to detect if a certain pixel is blue, but I also want to draw other things on the screen that change the blue. I think I'll try doing this by adding some "tolerance", but I'd like to know if there's a cleaner way. Maybe a way to check a pixel on a certain layer? Thanks :)
  19. Morkinas

    GML [SOLVED] Draw line alpha

    Hello, so i need to draw line with 0.5 alpha, but I guess I can only add the fade point so it starts with alpha=1 and fades to my set value 0.01 in this case. I need to set start and end alpha to 0.5 Draw Event var dir = point_direction(x, y, mouse_x, mouse_y); var d = 1800; //Hitscan for(var...
  20. T

    GameMaker [Solved] how to change image_index for a drawn sprite?

    hello guys. I was wondering how you change the image index for a sprite that you draw (not the sprite associated with the object)
Top