Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
can someone help me? i need my character to gain speed when walking and when the character stops the speed will go back to normal |
||||
|
You can use predefined "special variables" (see help documentation for how to use special variables - call them using the hash-sign, then define them using the node-name, followed by ".movementspeed" or ".health" etc). Here's an example of what you asked for... BEFORE FIRST DRAW AND ON RELOAD set variable "run" == "0" ACTION when "w" key is pressed> set variable "run" == "1" ACTION when "w" key is released> set variable "run" == "0" BEHAVIOUR every few seconds (10ms)> If variable "run" == "1"> set variable "(hash-sign)player.movementspeed" + "0.1" <else> set variable "(hash-sign)player.movementspeed" == "1" |
||||
|
didnt work at all |
||||
|
only works if you do it properly |
||||
|
It does work... download the the "speedchange.ccb" I made which shows how to do it... https://veganpete.itch.io/free-c... |
||||
|
oh i realised i did some stuff wrong it works now thank you sir! |
|