I am working on a project where the player can create and move buildings. I am having a problem with is moving the buildings once they have been placed. What I want is when the player holds down the mouse on the building for one second, the building will follow the mouse pointer (I already have the following the pointer part working but not the holding down the mouse). When the player releases the mouse button, the building will stop following the pointer. Can someone give me some advice on this or tell me how this can be accomplished?
↧