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

Drag And Drop Multiple Instances

Discussion in 'Programming' started by Dana Warner, Sep 1, 2017.

  1. Dana Warner

    Dana Warner Guest

    My code is working as planned for the first enemy I place in the room, but the code isn't affecting additional instances?
     
  2. samspade

    samspade Member

    Joined:
    Feb 26, 2017
    Posts:
    2,124
    This is a very hard question to answer with such little information. Generally, you should add a little bit more description (e.g. what is the code supposed to do) and code (post the actual code) where appropriate (which it is with this question).
     
  3. RefresherTowel

    RefresherTowel Member

    Joined:
    Jul 13, 2016
    Posts:
    1,219
    While what samspade said is very true, I would imagine you're referencing the object not the instance. Don't use obj_enemy_name.whatever to reference anything.
     

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