drawing

  1. Simon Gust

    Legacy GM [SOLVED] Drawing coloured sprites

    Hello, I've run into a little not too critical problem. It is about drawing sprites with image_blend set to a colour dependent on what elite-type that enemy as an object is. This is fine and all but I have an object that controls how everything is drawn with (obj_enemy) { draw_self(); }...
  2. S

    GameMaker set existing compiled sprite as surface

    does anybody know if its possible to draw on a surface and save it to a existing sprite on the texture page at runtime?
  3. T

    Legacy GM Creating Hex color codes - concatenating a number and "$"?

    Ok so my issue is that I am trying to generate my own hex values to put into a draw_sprite_ext function. Now generating them is all good but the issue is actually getting them into the function. The main issue is how when putting a hex value in the draw_sprite_ext function you need to have a...
  4. P

    Character/Monster Design and Art!

    Tried my hand at pixeling. Took almost an hour to make this tiny guy >w< )'' That's a gem in the center, surrounded by mana jelly which acts as a squish-able armor.
  5. Kaliam

    Discussion Drawing at a depth of 0 dramatically decreases performance?

    So I was just testing a few things on a quick test setup I have for testing the speed of scripts and I found something very strange as you can probably tell by the post title. Here are some screenshots of the performance and code for each set up along with an instances counter. The white dot are...
  6. David Richard

    [SOLVED] Detect when room has finished drawing

    Situation: I have a persistant object that runs a piece of code at room creation. The problem is that it needs to manage a background but it crashes everytime as it says the background does not exist. Is there a way to detect when the room has completely drawn where I could THEN run my code?
  7. H

    GML [SOLVED] Matrix rotation applied after invisible translation?

    I'm having trouble with basic matrix transforms. Please understand, I've done my research, I'm coming here as a last resort. As a simple test, I am trying to render a triangle in rotation about the y-axis. I expect a stationary triangle that rotates, but this is what I'm seeing (in orthographic...
  8. P

    GameMaker Drawing Object Partially Between Portals

    Hi, so I'm currently working on a game that involves a portal mechanic, now i've gotten the portals to works in the sense that you enter portal a and warp to portal b... but I thought it would be far more interesting if the portals weren't such an instantaneous warp and instead were like...
  9. Kaliam

    GameMaker Question about sprite drawing at large coordinates

    So I have noticed that if you have an object that is around 2,000,000+ X or Y in a room, you will start to see visual gittering whenever that object is moving or rotating. Image distortion also occurs when an object is drawn at an angle. I'm just curious why this happens and if there is a...
  10. M

    GML How to Clip a Sprite Outside a Rectangle

    I'm trying to figure out how to clip a drawn sprite so it can't be seen outside of a defined rectangle: (sorry if this image is a bid crude) I assume this can be done with surfaces or blend modes or something? I'm aiming to make this as efficient as possible, since it may have to be used a...
  11. Ronchon

    Legacy GM Drawing without affecting a surface's alpha

    Hello! I've been stuck for hours with this stupid problem: Let's say i have a surface with a circle in it, on a transparent background. I'm trying to draw something semi-transparent on top of it , lets say a red circle of 50% transparency, without affecting the background's alpha, resulting...
  12. Tthecreator

    Question - Code Bug or not? "Draw failed due to invalid input layout"

    Hi, Today I came across something which I believe to be a bug. My problem is this: Whenever I use a shader and then try to draw a line, I get an "Draw failed due to invalid input layout" spammed inside of my console output. Drawing something like a rectangle works just fine, with a working...
  13. Simon Gust

    [SOLVED] Is tile_get_background broken?

    What I am trying: In my game I have a room filled with tiles on 3 different tile layers. Since I want my game to be prettier I would need even more tiles and tile layers. I didn’t want that, so I gave a new strategy a try: In an object, find all the tiles on a layer with tile_get_ids_at_depth...
  14. D

    (SOLVED)How do you draw a custom sprite above an object??

    I have a question mark sprite and I want to draw it above one on my objects, how can this be done? I haven't really done much drawing before. If that doesn't make sense, what i'm saying is can someone give me an example of how you can draw a pre made sprite above another object (above an...
  15. Lumenflower

    GML Drawing instances at the same position only once.

    Okay so that title probably isn't super helpful. Here goes... Basically I've made a little engine where a bunch of ships move around a node-based map. Each node can have up to four connections (North, South, East and West). One ship is controlled by the player, and you can either hit up, down...
  16. C

    Android Draw Text Errors (And Future Problems)

    Good day! I saved all my Android questions for one weekend. ;) A bizarre error occurs when porting my game to Android. At the gameover screen, the player is presented with their rank. The gameover sfx ends and blinking 'Revenge?' text, the reset prompt, appears. Here's how it should look...
  17. D

    (SOLVED) Anyone know if this is possible to do?

    Just wondering if there is a way to draw the actual distance between two objects when using the "point_distance" function. Is that something you could do in a draw event or something?
  18. D

    How can I change the direction of a drawn sprite?

    So I have made an outline that appears over an enemy when the mouse goes over it but I can't figure out a good way to draw the outline in the left direction without using rotate, but if I use rotate it just stretches the outline. I'm pretty new to drawing code so It could just be something...
  19. G

    Shadow Blend Modes

    I am currently trying to add shadows to my game which are drawn using triangle strip primitives from the corners of boxes which cast shadows. This system is working well, however as I want the shadows to be 'see through' I am drawing these as black but with 0.3 alpha, this creates problems where...
  20. F

    Giana Sisters Renew 2016

    Hi, Both work and hobby are very difficult together, If you are working alone !. I've been working on this game as far as I can. It's an old Amiga game, I redesigned all sprites. What I want to ask is; Is it worth going on? And do you have someone to help? Thank Game's video: Game's EXE...
Top