Difference between revisions of "Custom movement control"

From Castle Wiki
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more (buttons)
drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more (buttons)


# Left/right The start of the code
# Left/right button, The 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 14: Line 14:




Now that your left and right button is done, its time to add a up, down and jumping
Now that your left and right button is done, its time to add a up and down


# Up/down The start of the code
# Up/down button The start of the code
Repeat code from Left and right but change '''VELOCITY X'''  
Repeat code from Left and right but change '''VELOCITY X'''  


With '''''VELOCITY Y'''''
With '''''VELOCITY Y'''''

Latest revision as of 05:12, 3 July 2022

drag, analog stick, slingshot, are the 3 deafult movement controls on castle.xyz, here is how to make more (buttons)

  1. Left/right button, The 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 and down

  1. Up/down button The start of the code

Repeat code from Left and right but change VELOCITY X

With VELOCITY Y