Heloed
08-02-2008, 05:50 AM
Hi, I am making a game in CS3 with dragging and dropping of objects, and I was able to find a tutorial that has helped me greatly.
I made a 3D crate, and made it so if you click while over it you can drag it, and if you release mouse button over it it will release it. The problem is that when you click on it the mouse moves to the upper-left corner of the bounds of the object where there isn't any actual object, so if you release mouse button it doesn't do anything and the object stays in drag-mode.
How can I make it so when I click on the object it will stick to my mouse exactly where I clicked, or alternatively will stick at a specific point on the object that I choose?
Edit: Thank you to all who viewed this thread but did not answer a very simple question. I have figured it out on my own. For anybody else who searched for this question and found this thread, here is the answer:
When you open the screen to make the item into a movieclip/button there is a 3x3 grid that has one of the boxes filled in. You can use this to change where the item registers at.
Also you can make it even more specific by (after having created the mc) double-clicking to go into the editor and then you should be able to move the white star thing to wherever, this is the registration point.
I made a 3D crate, and made it so if you click while over it you can drag it, and if you release mouse button over it it will release it. The problem is that when you click on it the mouse moves to the upper-left corner of the bounds of the object where there isn't any actual object, so if you release mouse button it doesn't do anything and the object stays in drag-mode.
How can I make it so when I click on the object it will stick to my mouse exactly where I clicked, or alternatively will stick at a specific point on the object that I choose?
Edit: Thank you to all who viewed this thread but did not answer a very simple question. I have figured it out on my own. For anybody else who searched for this question and found this thread, here is the answer:
When you open the screen to make the item into a movieclip/button there is a 3x3 grid that has one of the boxes filled in. You can use this to change where the item registers at.
Also you can make it even more specific by (after having created the mc) double-clicking to go into the editor and then you should be able to move the white star thing to wherever, this is the registration point.