Difference between revisions of "Custom movement control"
From Castle Wiki
(Created page with "drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more # The start of the code for movement it needs to constantly moving...") |
|||
Line 1: | Line 1: | ||
drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more | drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more (buttons) | ||
# | # Left/rightThe start of the code | ||
for movement it needs to constantly moving, the simpliest option is '''WHEN THIS IS PRESSED''' | for movement it needs to constantly moving, the simpliest option is '''WHEN THIS IS PRESSED''' | ||
Line 7: | Line 7: | ||
Due to it constantly repeating code as long as it is pressed. | Due to it constantly repeating code as long as it is pressed. | ||
2. | 2. Moving | ||
First add '''TELL ACTOR WITH TAG #(charactertag)''' | |||
Then add '''MODIFY DYNAMIC MOTION PROPERTY VELOCITY X [N] (RELATIVE)''' | |||
Now that your left and right button is done, its time to add a up, down and jumping | |||
# Up/down The start of the code |
Revision as of 09:45, 2 July 2022
drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more (buttons)
- Left/rightThe start of the code
for movement it needs to constantly moving, the simpliest option is WHEN THIS IS PRESSED
Due to it constantly repeating code as long as it is pressed.
2. Moving
First add TELL ACTOR WITH TAG #(charactertag)
Then add MODIFY DYNAMIC MOTION PROPERTY VELOCITY X [N] (RELATIVE)
Now that your left and right button is done, its time to add a up, down and jumping
- Up/down The start of the code