1. Hey! Guest! The 34th GMC Jam will take place between August 22nd, 12:00 UTC (Thursday noon) and August 26th, 12:00 UTC (Monday noon). Why not join in! Click here to find out more!
    Dismiss Notice

GML Collision Issues

Discussion in 'Programming' started by derp556, Apr 19, 2018.

  1. derp556

    derp556 Member

    Joined:
    Mar 24, 2018
    Posts:
    5


    How do i fix my collision issues? (Sorry for crappy background art, its just a placeholder for now)
     
  2. Xer0botXer0

    Xer0botXer0 Member

    Joined:
    Jun 29, 2016
    Posts:
    668
    Which collision issues ?
    Post your collision code of your player with the respective colliding objects.
     
  3. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    6,659
    Those boxes are just empty space. What you need to do is adjust the Collision mask manually.
     
  4. TheSly

    TheSly Member

    Joined:
    Jan 16, 2017
    Posts:
    949
    Following on from the comment above, here's exactly how to do it.
    Inside the sprite properties dialog, click on Modify Mask, and then select Manual for Bounding Box, and draw a box around the sprite which will be the new collision mask. Do this for both of your sprites, and the collisions should be much tighter.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice