draw

  1. M

    Drawn shadows overlapping issue

    So in my top-down viewed game, I have cloud shadows (transparent sprites) that occasionally fly over the levels. They overlap tho, causing the overlapping section to go dark, and it looks bad. I tried learning to use Surfaces to overcome this issue..... but honestly i dont have much clue how to...
  2. A

    GML Can I use the same font with 2 different sizes in the draw gui?

    I searched on google and found no way to change the font size Help me pls, i'm noob xd
  3. rob2d

    Windows Background layer shows above sprites

    Hi, Recently started to get familiar with Game Maker after a long hiatus from any kind of hobby game development and found that in GMStudio 2 (Beta v23.1.1.67), I am having issues where the background always draws above sprites. If I check the room settings, the depth of the background layer...
  4. helpless_coder

    GMS 2 How can I determine distances in fake 3d?

    [CLOSED] Got help from the Math discord, and they came up with this solution: if (relative != noone) { var start_point = argument1; var end_point = argument2; var input = argument3 if (input > 100) input = 100; else if (input < -100) input = -100; var distance =...
  5. Dr_Nomz

    GML [SOLVED] How to play an animation?

    I'm trying to have an enemy attack, and then switch back to it's normal state after attacking. Problem is I can't figure out how to make it play the animation properly. It'll start, stay on the first frame, and do nothing. I start off in the CREATE event with a simple state engine, one for...
  6. 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...
  7. duran can

    GMS 2 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...
  8. 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...
  9. 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...
  10. 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...
  11. Adry

    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...
  12. Adry

    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...
  13. 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)...
  14. 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...
  15. 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...
  16. 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...
  17. William Garrison

    GMS 2 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)...
  18. alexhinton

    GMS 2 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...
  19. 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
  20. tamation

    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...
Top