How to eliminate two actors after drag and drop?

pepe87

  • Posts: 92
Hello guys!

I am creating a game using the drag and drop behavior. I wish that when you release the actor (1) on the actor (2) the two disappear.

And after the event go to another scene.

Someone can help me

Thanks

gplar

  • Posts: 1115
You could on drop of actor 1 check if its x and y position is within +- 5 or 10 or more (depending on the precision you want) of the x and y position of actor 2.
If it is, kill both.

pepe87

  • Posts: 92
You could on drop of actor 1 check if its x and y position is within +- 5 or 10 or more (depending on the precision you want) of the x and y position of actor 2.
If it is, kill both.

what would it be "on drop of actor 1"?

gplar

  • Posts: 1115
One of these, depends on whether you use an event (top) or in a code block (bottom).

pepe87

  • Posts: 92
One of these, depends on whether you use an event (top) or in a code block (bottom).

But how do I remove the actor (2) in this case?

I will use a collision?