F
Floris18
Guest
Hello everyone,
I'm currently making a game where the objective is to make a sewer system with tubes. There is a limited amount of available. I'm sort of improving this game: https://www.crazygames.com/game/pipe-puzzle
My question now is: how do I program the drag and dropping of the tubes? I want to make it as follows: There is a stationary tube outside of the playing field and when pressed there is another tube created, slightly bigger but the same as the other one, and while still holding your left mouse button it can be dragged to a square in the grid.
My preference is drag and drop code but if that's not possible coding is also fine.
I hope I explained my problem well enough
I'm currently making a game where the objective is to make a sewer system with tubes. There is a limited amount of available. I'm sort of improving this game: https://www.crazygames.com/game/pipe-puzzle
My question now is: how do I program the drag and dropping of the tubes? I want to make it as follows: There is a stationary tube outside of the playing field and when pressed there is another tube created, slightly bigger but the same as the other one, and while still holding your left mouse button it can be dragged to a square in the grid.
My preference is drag and drop code but if that's not possible coding is also fine.
I hope I explained my problem well enough