Problems with clone() and a Drag action

  1. 5 months ago

    Hi All. A few weeks ago Angelo helped me with the cloning function, and I thank you very much for this. I have used what I learned from you example in several of the projects I have been working on.

    In some of my projects, I have uses the clone function to move objects to a particular area of the project. Using your example of the basketballs, I need to drop balls in a basket. If I drop the ball outside the basket, I want it to go back to its initial position. I have used the drag event on the balls and add the "Move Object --self" to initial position if the ball is dropped outside the target area. It is not working for me for me. When I drag the ball outside the target basket, the ball does not return to the initial position.

    Can you please help me with this? What am I doing wrong?

  2. Angelo S

    Jun 28 Administrator

    Simply put, the cloned objects do not carry the actions of the original object... you should add required actions on the cloned objects via code.

 

or Sign Up to reply!