Hey guys,
Im currently having an issue: Im basically trying to create a way for my player to walk diagonally, but when i give the set movement order - it also makes the player move regulary on top of it.
Basically what i want is to freeze the players regular movement while im the custom movement state that ive created. Ive tried making it an autorun, but when I use that way i cant interact with events. And ive tried putting a regular set move command with no orders on repeat after every move - which prevents the player from moving, but also makes the intended movement extremely jaggy.
Also id really prefer to not use plugin solutions, as id like to keep in control of my own project as much as possible. And want to know whats going on.
This is how the movement order looks:
Im currently having an issue: Im basically trying to create a way for my player to walk diagonally, but when i give the set movement order - it also makes the player move regulary on top of it.
Basically what i want is to freeze the players regular movement while im the custom movement state that ive created. Ive tried making it an autorun, but when I use that way i cant interact with events. And ive tried putting a regular set move command with no orders on repeat after every move - which prevents the player from moving, but also makes the intended movement extremely jaggy.
Also id really prefer to not use plugin solutions, as id like to keep in control of my own project as much as possible. And want to know whats going on.
This is how the movement order looks:
Code:
◆If:Script:Input.isPressed("down") && Input.isPressed("left") && ![99].contains($gameMap.regionId($gamePlayer.x-1, $gamePlayer.y+1))
◆Set Movement Route:Player (Wait)
: :◇Move Lower Left
◆
:Else
◆If:Script:Input.isPressed("right") && Input.isPressed("down") && ![99].contains($gameMap.regionId($gamePlayer.x+1, $gamePlayer.y+1))
◆Set Movement Route:Player (Wait)
: :◇Move Lower Right
◆
:Else
◆If:Script:Input.isPressed("left") && Input.isPressed("up") && ![99].contains($gameMap.regionId($gamePlayer.x-1, $gamePlayer.y-1))
◆Set Movement Route:Player (Wait)
: :◇Move Upper Left
◆
:Else
◆If:Script:Input.isPressed("up") && Input.isPressed("right") && ![99].contains($gameMap.regionId($gamePlayer.x+1, $gamePlayer.y-1))
◆Set Movement Route:Player (Wait)
: :◇Move Upper Right
◆
:Else
◆If:Script:Input.isPressed("down") && ![99].contains($gameMap.regionId($gamePlayer.x, $gamePlayer.y+1))
◆Set Movement Route:Player (Wait)
: :◇Move Down
◆
:Else
◆If:Script:Input.isPressed("left") && ![99].contains($gameMap.regionId($gamePlayer.x-1, $gamePlayer.y))
◆Set Movement Route:Player (Wait)
: :◇Move Left
◆
:Else
◆If:Script:Input.isPressed("right") && ![99].contains($gameMap.regionId($gamePlayer.x+1, $gamePlayer.y))
◆Set Movement Route:Player (Wait)
: :◇Move Right
◆
:Else
◆If:Script:Input.isPressed("up") && ![99].contains($gameMap.regionId($gamePlayer.x, $gamePlayer.y-1))
◆Set Movement Route:Player (Wait)
: :◇Move Up
◆
:Else
◆Wait:3 frames
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End
◆
:End