GM:S 1.4 Specific collision point

Discussion in 'Programming' started by MIchael PS, Dec 30, 2018.

Tags:
  1. MIchael PS

    MIchael PS Member

    Joined:
    Aug 12, 2017
    Posts:
    95
    Hello there,


    Merry Christmas and Happy holidays by the way.

    Anyway, I’ve been working on a small project lately and I came across a problem. So, what I wanna do is to have the player shoot, and then have a collision line to check if there is an enemy the way he is shooting.

    And until now I know how to do it, but here comes the problem, I want to detect the exact point where the collision happens and have the blood created there. I thought to store the colliding instance in a variable (let’s say var target) and then say “instance_create(target.x,target.y,obj_blood_creator)”, but this would only create blood in the origin of the object, not in the collision point.

    Is there a build in function I can use? Should I work it out myself?

    Any thoughts are appreciated a lot. Thank you for your time.

    Have a great holliday!
    Michael
     
  2. Relic

    Relic Member

    Joined:
    Jun 27, 2017
    Posts:
    720
  3. MIchael PS

    MIchael PS Member

    Joined:
    Aug 12, 2017
    Posts:
    95

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