ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator On working a single animation in two keys
person icon
Kingfu
Guest
Quote
2023-12-27 17:15:05

Hey I want to move my object by pressing w key as well as f key . which means I want to apply walk animation for both keys how can I apply

person icon
kaelgodoy
Registered User
Quote
2023-12-29 01:15:09

You can try "ccbEmulateKey".

ccbEmulateKey(keyCode, pressedDown)

(According to the official documentation)

person icon
guest
Guest
Quote
2023-12-29 21:12:03

or you can just say if a key is pressed +1 (variable), if (variable) is greater than 1 than play the animation when the keys are un-pressed -1 (variable) if (variable)=0 stop the animation


Create reply:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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