Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Disable Backwards Movement in "Object or Person controlled by keyboard"

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?


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.


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.


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:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (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