J
jr carey
Guest
I'm trying to get child object to follow a parent object, for example I have 2 objects 1st will be object 1 and 2nd will be object 2 (just random names)
1st is the parent, and 2nd is the child, in the step event of 2nd I put (move_towards_point(1st.x,1st.y,5))
but it only follows itself because its a child even when I'm asking it to follow that object...it does the same thing if you add another object that isn't parented or chided by any objects, it will still follow 2nd, and occasionally 1st...to make it clearer, I will add a 3rd object named 3rd, if I try to make third follow 1st, it will follow 2nd
so how can I make one object follow a parent object and not the childs? any ideas?
1st is the parent, and 2nd is the child, in the step event of 2nd I put (move_towards_point(1st.x,1st.y,5))
but it only follows itself because its a child even when I'm asking it to follow that object...it does the same thing if you add another object that isn't parented or chided by any objects, it will still follow 2nd, and occasionally 1st...to make it clearer, I will add a 3rd object named 3rd, if I try to make third follow 1st, it will follow 2nd
so how can I make one object follow a parent object and not the childs? any ideas?