When i hit one enemy all die pls help

Discussion in 'Programming' started by GM Noob PLS Help, Jun 14, 2019 at 1:01 PM.

  1. GM Noob PLS Help

    GM Noob PLS Help Member

    Joined:
    May 13, 2019
    Posts:
    1
    This also happens with my kick attack and spacial attack.
     

    Attached Files:

  2. Jezla

    Jezla Member

    Joined:
    Jun 20, 2016
    Posts:
    420
    You are applying the effect to the object ID, not the instance ID. You need to change this:

    Code:
    with(oEnemy1)
    to this:

    Code:
    with(hitID)
    In addition, please don't post screenshots of your code, but use code blocks (as I did above) to post your code. It's much easier for everyone to read it.
     
  3. samspade

    samspade Member

    Joined:
    Feb 26, 2017
    Posts:
    1,870
    JackTurbo likes this.
  4. Jonar

    Jonar Member

    Joined:
    Dec 9, 2018
    Posts:
    20
    Lol I think I've seen this code somewhere before...
     
  5. Amon

    Amon Member

    Joined:
    Sep 13, 2016
    Posts:
    212

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