How do i make a drag and drop simple game

how do i make drag and drop simple game

Like what kind? Can you describe the game play?

like this one

You use the sensing method in the event manager. For example, say you have 3 pieces to fit in 3 holes. You say: WHEN piece1 sensing collided with hole1 DO object1 set position to hole1. This will “snap” the puzzle piece to the hole in contact.

The something could be to break drag on the object. So the player cannot pick it up again.

You can also create rejection events. So of object1 collides with hole2 you send the object to a position on the screen. And the player has to start over.


thanks alot david that’s really helpful