ActorAI's walk speed can be adjusted now

Former-commit-id: 556677bddf9cc29358471c81f7febc40e8e6cc7d
Former-commit-id: 35b994001dd034e166ba6c6709cb92fd5dca073e
This commit is contained in:
Song Minjae
2016-12-28 00:17:52 +09:00
parent 2e2e4a0281
commit e253641471
7 changed files with 135 additions and 77 deletions

View File

@@ -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
}