frozenpeas
Technical User
I have built a game in Flash 5. It is essentially a skeleton-building game where the user drags and drops the scattered bones to rebuild the skeleton.
The first problem I overcame was that since the bones were on different layers, the drag would stop when a bone was dragged across another bone which was on a higher layer. I used swapDepths to beat that.
I finished the game and thought I'd would use the 'lock Mouse to center' feature on the drag. So I added that to every bone. Since doing this, some bones are no longer draggable.
I have tried:
which makes some bones undraggable, and:
which makes some bones undraggable, and:
which makes all of the bones undraggable.
I am unable to post an fla because this is for work.
Does anyone have any ideas? Or am I just going to have to live with no 'lock to center'?
Thanks.
The first problem I overcame was that since the bones were on different layers, the drag would stop when a bone was dragged across another bone which was on a higher layer. I used swapDepths to beat that.
I finished the game and thought I'd would use the 'lock Mouse to center' feature on the drag. So I added that to every bone. Since doing this, some bones are no longer draggable.
I have tried:
Code:
on (press) {
startDrag ("this", true);
this.swapDepths(_root.swap);
}
which makes some bones undraggable, and:
Code:
on (press) {
startDrag ("", true);
this.swapDepths(_root.swap);
}
which makes some bones undraggable, and:
Code:
on (press) {
startDrag ("_root.instancename", true);
this.swapDepths(_root.swap);
}
which makes all of the bones undraggable.
I am unable to post an fla because this is for work.
Does anyone have any ideas? Or am I just going to have to live with no 'lock to center'?
Thanks.