mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 14:34:04 +09:00
ActorAI's walk speed can be adjusted now
Former-commit-id: 556677bddf9cc29358471c81f7febc40e8e6cc7d Former-commit-id: 35b994001dd034e166ba6c6709cb92fd5dca073e
This commit is contained in:
@@ -84,23 +84,23 @@ open class HumanoidNPC(val luaScript: String, born: GameDate) : ActorHumanoid(bo
|
||||
//moveRight()
|
||||
}
|
||||
|
||||
override fun moveLeft() { // hit the buttons on the controller box
|
||||
isLeftDown = true
|
||||
override fun moveLeft(amount: Float) { // hit the buttons on the controller box
|
||||
axisX = -amount
|
||||
}
|
||||
|
||||
override fun moveRight() { // hit the buttons on the controller box
|
||||
isRightDown = true
|
||||
override fun moveRight(amount: Float) { // hit the buttons on the controller box
|
||||
axisX = amount
|
||||
}
|
||||
|
||||
override fun moveUp() { // hit the buttons on the controller box
|
||||
isUpDown = true
|
||||
override fun moveUp(amount: Float) { // hit the buttons on the controller box
|
||||
axisY = -amount
|
||||
}
|
||||
|
||||
override fun moveDown() { // hit the buttons on the controller box
|
||||
isDownDown = true
|
||||
override fun moveDown(amount: Float) { // hit the buttons on the controller box
|
||||
axisY = amount
|
||||
}
|
||||
|
||||
override fun moveJump() { // hit the buttons on the controller box
|
||||
override fun moveJump(amount: Float) { // hit the buttons on the controller box
|
||||
isJumpDown = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user