Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
MoveObjectbyPositi-Change or Update

Chris
Guest
Quote
2020-01-14 20:26:43

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);


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact