Advertisement
goldnera

Player Movement WASD

May 25th, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pdp .movementControls
  2.  
  3. playerControls = "W,A,S,D", w.Key = moveForward, a.Key = moveRight, s.Key = moveBackward, d.Key = moveLeft
  4.   player.Controls = (movement.OnKeys), true !/ onmovementKey = move, # function that makes the play follow the rule of playerControls
  5.  
  6.  .MovementControlling=getFollowingMovement.addKeyFuction = (s)_ function.keyRemove = false, # functions for movement of key removal
  7.    currentMovement = false, returnKey, "getPublic.Movement-IdleFunction=public", movement.function = on
  8.    
  9.    install.movement = false, returnMovementFunction, (GetPublicMovementFunctionDialog), function = get, (Public), = true /From;internal
  10.    
  11.  internal.movement = keyfunction.update-FalseMovementKeys == (function.movePlayer=keys), function.Pub=false
  12.    movement-keys.playerFunction = addMovement then player.key = addMovement (true), = (publicMovement.getKeys=move),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement