Ok then... I don't know ASM language, but I with NESMaker and Joe tutorials, I started to read and compares some of the scripts he wrote, and I tried to add those actions
So I inspired myself from the AI_Action_02.asp action script ("Move 4 directions"),
and modified the empty "AI_Action_06.asm" to :
Code:
;;;; Choose out of directions vertically.
JSR GetRandomDirection
AND #%00000100
TAY
LDA DirectionMovementTable,y
STA temp
TYA ;; the 0-7 value for direction
ORA temp
STA Object_movement,x
And I modified the empty "AI_Action_07.asm" to :
Code:
;;;; Choose out of directions horizontally
JSR GetRandomDirection
AND #%00000110
ORA #%00000010
TAY
LDA DirectionMovementTable,y
STA temp
TYA ;; the 0-7 value for direction
ORA temp
STA Object_movement,x
Then, in "Project Labels > Action Types", I renamed AI_Behavior06 to "Move directions vertically" and AI_Behavior07 to "Move directions horizontally"
Et voilà
I don't know if it's clean... but it's fun to test
Looks that it does the job.
PS: please, if someone knows ASM, correct my code