• 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_line

  1. thejosving

    SOLVED Draw sprite line?

    I want to make something like this image (could not upload it here). Draw a line between two points, but not a "draw_line" line, instead a sprite, constantly repeating itself until reach the target. I've already tried draw_sprite_part but it didn't work...
  2. Misael644

    Problems with the angle of a drawn line

    So, recently I put in my spaceship game a bomb system, which the player can drop to destroy nearby targets. Before the bomb is dropped, a line is drawn to show the bomb's path. But I noticed that this line is not being drawn at the correct angle of the bomb's path. Here is the code for how the...
  3. Misael644

    SOLVED Any function or code that works like "draw a line for the instance whose variable is x?

    Hello! So, basically I want to make a code that is like: "draw a line for the instance whose variable is x". I thought about using instance_find to do this, but it only works like "I will only draw a line if the instance id is x". I wanted to use such a function to make "line graphics", which...
  4. Erik Leppen

    Draw smooth lines? How to have "texture interpolation" for primitives?

    I have the idea that this should be very simple, but I can't find it. I'd like to have interpolation between pixels (with correct alpha blending of course, and using any color/alpha) for drawing primitives (draw_line, draw_circle, vertex_submit). Both for 1d (linelist) and 2d (trianglelist)...
  5. O

    How to rotate the moving triangle in the direction of motion?

    Create Event: execute code: image_angle=direction Step Event: execute code: direction = point_direction(x,y,mouse_x,mouse_y) image_angle = direction Draw Event: execute code: draw_set_color(c_red) draw_line(x,y,x+lengthdir_x(400,direction+30),y+lengthdir_y(400,direction+30))...
  6. N

    Just found interesting thing about draw line or outline

    I got frustrated why my bounding bbox_left and bbox_top had offset by +1 when I used draw rectangle outline or simply line. Turned out that in line or outline situations they ar drawn BETWEEN pixels right side or bottom side of pixel you are drawing. Food for thought, dunnoo if this should be...
  7. K

    GameMaker [help] How to use draw_line make a Scrolling 80's Retro Neon Grid?

    I want to make a menu background just like Far Cry 3 Blood Dragon,and i have already been trying for a few days,but i just can't figure it out! I think my code is really awful. now i have two problems wan't to figure out. 1. i was using code like this to draw vertical lines // draw vertical...
  8. W

    Wave lines

    Is there any way to make a "wiggle" pattern using draw_line so it looks like a wave frequency?
  9. S

    Weird lengthdir problem

    I try to create a gun in my game that draws a line to the player, but when this line collides with a wall between the player and the gun the line should only be drawn to the wall. My code is the following: Create event: dir = 0 //direction the gun is facing collide = "" //Variable to store...
  10. M

    HTML5 - draw_line is blurred *solved*

    I'm using the draw_line function to draw on a surfaces using the mouse as a pen. This works fine running the game on windows but running it in HTML5, the lines become blurry as if you are drawing with a brush in windows paint. I have this problem in firefox, chrome and internet explorer. Any...
Top