Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi all, a question regarding "MoveObjectbyPositi) behaviour. What code do i need to allow for other animations such as shooting or sword attack? This is not possible now. //////////////// // set animation if (this.JumpForce > 0) { ccbSetSceneNodeProperty(node, 'Animation', this.JumpAnimation); if (!this.loopJumpAnimation) ccbSetSceneNodeProperty(node, 'Looping', false); } else if (bMovingForward) { ccbSetSceneNodeProperty(node, 'Animation', this.WalkAnimation); ccbSetSceneNodeProperty(node, 'Looping', true); } else { ccbSetSceneNodeProperty(node, 'Animation', this.StandAnimation); ccbSetSceneNodeProperty(node, 'Looping', true); } // set position ccbSetSceneNodeProperty(node, 'Position', pos); |
|