Really need help, I'm making my first big game in construct 3. I apologize for my bad English.
I have a few problems, I will try to explain them:
1. I need to implement in the children's game drag and drop objects so that in the floor collision area they can be dragged from place to place, and when they are lifted to the wall level and released they fall on the upper boundary of the floor collision or on another solid object (shelves, dresser and so on). That is, I have one large background sprite that shows the wall and the floor, and the collision is the floor. I added all the dragable objects to the “DragItems” family, and the “solid” objects to the “DropSolid” family. I tried experimenting with physics and turned it on exactly at the moment of falling, because I need the effect of a slight bounce at the moment of contact with a solid surface. But so far, the drag works on the entire surface of the sprite, without taking collision into account.
2. Problem #2.
I have static objects that are clickable (on/off lamp light for example or open/close curtain) and draggable objects that have clickable actions (also on/off screen or on/off particle creation). But so far I don't have a distinction between click and drag, is there any way to distinguish between them? That is, if I have a click interaction on an object, then dragging it would not trigger a conditional click? Also when dragging an object or clicking on a static object they can be triggered simultaneously, i.e. clicked. This happens with interface elements, if I click on the button, which is above some interactive clickable object, they both work! It really interferes with my game and I would like to fix it, how to remove this particular clicking?
3. Problem #3.
I need to implement the ability to put objects on shelves, in a cabinet, in a box. Boxes can be interactive, that is, if it is closed, then the objects in it are hidden and dragged together with it, if you drag the box open, then the objects should be visible on the half, as if sticking out of it. If stacked in a closet, they can be covered by a door, or overlapped by the top of a shelf. It is also necessary that when an object is lifted above the bottom of the shelf, then it falls on the shelf. If you stack two similar objects on top of each other, they should become on top of each other without overlapping. And also limit the size, that is, if the object is taller or wider than the size of the shelf or box, you can't stack it there anymore. I tried to implement it by my own efforts, having read the whole forum and other tutorials, it works, but with errors.
My project is already too big, so I made a mini-copy to demonstrate all these problems. I apologize if I attached and posted wrong, this is my first time posting on the forum and sharing my project. I have already done a lot of things, but I can't overcome the most important mechanics of my game, I really believe in the power of the forum and need help! Thank you in advance for your help!
https://www.dropbox.com/scl/fi/rzymzqaf93v653xvgfkk9/C3_problem.c3p?rlkey=e830m0v8xvvvvboll6bnh13wz&st=5kyrycq6&dl=0