1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

I need a simple, yet effective collision code

Discussion in 'Programming' started by guywithglasses, Oct 26, 2019.

  1. guywithglasses

    guywithglasses Member

    Joined:
    Oct 20, 2019
    Posts:
    4
    i just simply dont know how to make collision.
    Please help.

    it does not have to be really simple i get code really well :)

    you can paste code down below or you can link a good
    forum post or something.
     
  2. Catastrophe

    Catastrophe Member

    Joined:
    Sep 22, 2019
    Posts:
    222
    Step event:
    if (place_meeting) {
    //stuff
    }

    check out the help manual on that function

    Unless you mean the english meaning of the word collision. In which case you could make one of the objects solid and the other not. Or honestly just download a platformer engine if you're making a platformer.
     
    Last edited: Oct 26, 2019

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