Quote:
Originally Posted by dragnet
The easiest way I've found is to use poses.
Move your sword to the hand of the character you want to swing it. Position the sword exactly where you want it and then set it's 'vehicle' to the hand of the character that is holding it. Now position the arm to where you want it to be before the swing starts. You'll notice that the sword will move with the arm if it's 'vehicle' property is set correctly. When you get the arm(and sword because it is attached) to the position you like, click on the character object and select 'capture pose'. Name the pose swingBegin or something like that. Now move the arm to where you want the sword swing to end. Again the sword should move with the arm. Capture this pose and name as swingEnd.
Now that you have your two poses you simply set the pose of your character in a 'while key is pressed' event. So 'while enter is pressed' for the event and place the characters setpose to swingEnd method in the begin portion of the event. Then in the end portion of the event set the pose to the swingBegin. Now you have an arm and sword moving together up and then back again. Remember the sword's vehicle must remain as the hand you want to swing it.
In this way you don't have to code individual motion into your movements. You can simply set poses and use duration amounts to create complex movement. The Alice engine simple moves all the pieces of your object from pose to pose, smoothly.
If you have any problem I can send you an example.
|
I think you're misunderstanding, I've done all of this and the pose isn't what's bothering me, it's resetting the arm to the starting position in the world, the arm itself and sword don't pivot, it moves forward and across the screen [it's vehicled to the camera], I'm wanting it to move in a swing motion, and return to the origion position in front of the camera, but for some reason when I reverse the code as I've previously done, it doesn't return to normal.