≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Walk and Stand animation by key
Posted by:
(you are not logged in)
Enter the missing letter in: "Inter?ational"
(you are not logged in)
Text:
[quote][b]rolevix[/b] wrote: Hi! Im trying some code, but this is didn't work, im not a programmer. *smile* Im just need to make behavior to play animation "Walk" when i press WASD, and play "Stand" when i release WASD. This piece of code is didnt work, im just trying to test on "W" key. [code]behavior_LegsAnimation = function() { ccbRegisterKeyDownEvent("keyPressedDown1"); function keyPressedDown1(87) { ccbSetSceneNodeProperty(this.Object, 'Animation', this.WalkAnimation); ccbSetSceneNodeProperty(this.Object, 'Looping', true); } }[/code] Also, i was try to use built-in "Object controlled by keyboard" with 0 speed, just for animation controll, but this didnt work with A-D keys. Any help? *uh*[/quote]
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