ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator Disable Backwards Movement in "Object or Person controlled by keyboard"
person icon
tk
Guest
Quote
2024-02-13 05:16:38

I need a way to disable backwards movement (S key) on the "Object or Person controlled by keyboard" behavior. Does anyone have any ideas? Does anyone have a copy of the behavior code so I may remove the S key functionality?

person icon
tk
Guest
Quote
2024-02-13 05:21:03

By the way, simply setting movement speed to "0" when S is pressed is not sufficient. That still stops forward movement, I am trying to prevent the player from being able to abruptly stop their momentum using S.

person icon
Guest
Guest
Quote
2024-02-13 06:01:28

Did you try setting the movement speed back to the original value when the S key is up? You will need to change the KeyEvent property of the behavior to "Key Let Up" to do so.

person icon
Guest
Guest
Quote
2024-02-13 06:12:15

It's "Key Left Up" not "Key Let Up". Try that out and see if it works if you have not. Anything more complex would probably need a custom behavior. There's a couple different movement behaviors in the pack that Robo has on his Itch page. Might want to check that out.

https://robo25.itch.io/coppercub...


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 |