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

mask

  1. R

    GameMaker [Solved] How can i set a variable collison mask by code?

    Hey I could really appreciate some help with that problem and please excuse all style problems it's my first post. Gamemaker Version: 2.1.4.288 How it should work: I have 2 points that I can move through a grid and when I press a key an object is created at the top left position of an...
  2. B

    How can I define a custom collision mask?

    I was wondering if i could define a collision mask where i can define the points of the edges of the mask. For example: if i give 4 points, i should have a rectangular mask. I am drawing a custom polygon in my game and it changes during gameplay which is why i cant just use a precise mask.
  3. T

    GameMaker [HELP] Blending Mode Masking - How to Change Transparency

    Hello! I'm trying to clip one sprite over another (which I've done thanks to a blog post on YoYo), but now I would like to be able to change the transparency of the sprite that's being clipped. Here's the code: draw_sprite_stretched(sSolid, 0, self.x, self.y, solidxScale, solidyScale)...
  4. S

     (Suggestion) Rectangle mask per frame

    simple suggestion the seems like it could be added very easily can the yoyo devs add a per frame option for every mask shape? I want to do auto tiling by using objects and their image_index's but I need to set their mask to be different depending on the frame. there isn't really a way to do...
  5. S

    Legacy GM SOLVED: Is it possible to use event collision in code for masks?

    Should be a straight forward issue, but I can't find anything on it so I'm assuming there's no function for it. Explanation: So when you create a Collision Event with an object inside the event window of an object, it runs code only if it's own sprite's MASK collides/overlaps with the other...
  6. S

    GameMaker (SOLVED) grid problem

    does anybody know why my grid look like this? the red numbers shouldn't be like that it should be setting the collision data depending on the quick mask. but it seems to get messed up. /// @desc load_solids() /// @arg level var level = argument[0]; var tile_len = level.length; var ids...
  7. Mike

    OFFICIAL TechBlog: DYNAMIC RENDERING MASKS

    https://www.yoyogames.com/blog/430/dynamic-rendering-masks So this is a quick one, but incredibly cool and valuable. When drawing to the screen (or a surface), most people only think about the colour, that is the red,green and blue channels, but actually there's also an alpha channel. Now it...
  8. Weastøne Entertainment

    Problem with sprite corners [apparently solved]

    Hello there!, Let me introduce this; the game has weapons such as bows, staffs... which can create projectiles. I wanted walls, signs, furniture... to break those projectiles, as it wouldn't make sense that arrows went through walls. All the objects able to destroy the projectiles are my...
  9. M

    Sprite rotation without collision change

    Is there a way to make a sprite change its image_angle without changing its mask? i've tried and my player got stuck in the ground :L
  10. J

    Collision not Working with Cust. Mask

    I created a custom mask for my ai punch animation. The mask is its own object and is instance_create'd when the punch animation/ frames are fully extended. Im not getting collision even though Ive tried all types of collision commands that make sense to me so that my player when "hit" gets...
  11. S

    GML Mask issues with image_yscale

    hey, so im making a shmup and i want one of the shot types to be a thick laser that stops at an enemy. ive figured out i can do this by scaling its yscale, but im having a problem where it seems it doesnt scale the mask too? im not sure what the problem is, ive run countless tests to try and...
  12. Bee

    GML Pathfinding and masks

    Okay I solved my last issue by myself after posting... maybe I can do that again! Fingers crossed. I'll try to explain my problem. The background is generated from tiles, and then overtop of that are mask tiles to prevent anyone walking through the "solid" objects that are drawn on the tiles...
  13. Bee

    GameMaker SOLVED: Sprites and masks from strip images

    Hello all, I hope the answer to this isn't too obvious and I'm just being clueless, but I also hope there's an easy answer. I have a game generating random tiles for the play area. The tiles are all within one sprite as different image_indexes. I would like to match up their corresponding...
  14. M

    Legacy GM [Solved] Change physics collision mask through code

    Maybe I'm just not looking hard enough, but is there any way to change the physics mask points through code, in the physics engine? I am experimenting with fracture code, so it would be really nice if I could have custom masks for those awkwardly shaped triangle particles? Otherwise I'll have...
  15. S

    Legacy GM I want to code a swinging animation for a guy with a sword.

    I am new and cannot find the documentation that says how to switch sprites while creating an extended mask representing the weapon being used. The Step event of obj_player01: //Get the player's input key_right = keyboard_check(vk_right); key_left = -keyboard_check(vk_left); key_jump =...
  16. RyanC

    Legacy GM Collisions with dynamic image_yscale

    Hi all, Anyone good with collisions? I'm trying to get a system going where the player's image_yscale flips gradually and therefore using: Image_yscale = lerp(image_yscale, target_yscale, 0.05) Everything looks fine but the player is now moving into the floor because the mask is expanding...
  17. A

    Legacy GM Custom Collision Masks

    Ive got an interesting question.: Is it's possible to create custom sized collision masks? Sure, you can create black, rectangular sprites from surfaces using create_sprite_from_surface, but wouldn't that be a problem if used extensively? It's not like there is a way to delete he extra sprites...
  18. D

    Collision Layers (May be the wrong term)

    So basically I have an object that I have set the collision mask to cover the entire screen, because that object needs to preform an operation anytime you click somewhere on the screen. But I have icons on the screen for things like the menu and setting. I was wondering how I could make it so...
  19. BerserkMecha

    Legacy GM Question with Sprite Bounding Boxes

    When using the draw_sprite_ext function, is the sprite's bounding box changed when the angle is changed or the x scale and y scale is changed? Game maker's manual says that the sprite's resource isn't changed, but I can't tell if that means the bounding box or not.
  20. B

    Problem with x/yprevious and sprite animations?

    So I started making the sprite animations for the walking today and decided to code the actual animations in. When trying this out, everything worked except the character seemed to become a bit wider. Now it can't react to collisions as usual due to its size. The code is below /// Switching...
Top