Hello, I'm making a CBS and find an error while creating it. Here's the code:
And here a video showing the problem:
While I press down button, the cursor just move to the monster and upper-left. But if I press up button, the cursor moves infinitely to upper-left. But this error only occurs if I have 1 or 2 monsters. If I have 3 monsters (max number) works fine.
What can I do to fix that?
Code:
@> Key Input Processing: V[0043:MENU_KEY], (W) { Select, Cancel, Down, Up, }
@> Comment: -------- Ecolhendo o monstro --------
@> Conditional Branch: V[0043:MENU_KEY] == 1
@> Play SE: Cursor1, 50%, 100%, 50
@> Control Variables: V[0049:monstro atual] += 1
@>
: Branch End
@> Conditional Branch: V[0043:MENU_KEY] == 4
@> Play SE: Cursor1, 50%, 100%, 50
@> Control Variables: V[0049:monstro atual] -= 1
@>
: Branch End
@> Conditional Branch: V[0049:monstro atual] < 1
@> Control Variables: V[0049:monstro atual] = 3
@>
: Branch End
@> Conditional Branch: V[0049:monstro atual] > 3
@> Control Variables: V[0049:monstro atual] = 1
@>
: Branch End
@> Comment: ------------------------------------------------------
@> Conditional Branch: V[0049:monstro atual] == 1
@> Conditional Branch: V[0028:m1_HP] > 0
@> Control Variables: V[0044:cursor_batalha_x] = [0003:monstro 1]'s Screen X
@> Control Variables: V[0045:cursor_batalha_y] = [0003:monstro 1]'s Screen Y
@> Comment: Número da id da picture do monstro
@> Control Variables: V[0055:id picture alvo] = 2
@>
: Else
@> Control Variables: V[0049:monstro atual] += 1
@>
: Branch End
@>
: Branch End
@> Conditional Branch: V[0049:monstro atual] == 2
@> Conditional Branch: V[0033:m2_HP] > 0
@> Control Variables: V[0044:cursor_batalha_x] = [0004:monstro 2]'s Screen X
@> Control Variables: V[0045:cursor_batalha_y] = [0004:monstro 2]'s Screen Y
@> Comment: Número da id da picture do monstro
@> Control Variables: V[0055:id picture alvo] = 3
@>
: Else
@> Control Variables: V[0049:monstro atual] += 1
@>
: Branch End
@>
: Branch End
@> Conditional Branch: V[0049:monstro atual] == 3
@> Conditional Branch: V[0038:m3_HP] > 0
@> Control Variables: V[0044:cursor_batalha_x] = [0005:monstro 3]'s Screen X
@> Control Variables: V[0045:cursor_batalha_y] = [0005:monstro 3]'s Screen Y
@> Comment: Número da id da picture do monstro
@> Control Variables: V[0055:id picture alvo] = 4
@>
: Else
@> Control Variables: V[0049:monstro atual] += 1
@>
: Branch End
@>
: Branch End
@> Move Picture: 10, (V[0044:cursor_batalha_x], V[0045:cursor_batalha_y]), 100%, 0%, 0.0 sec, RGBS(100,100,100,100)
@> Comment: ------------------------------------------------------
@> Comment: ------------------------------------------------------
@> Conditional Branch: V[0043:MENU_KEY] == 5
@> Erase Picture: 10
@> Control Variables: V[0053:alvo X] = V[0044:cursor_batalha_x]
@> Control Variables: V[0054:alvo y] = V[0045:cursor_batalha_y]
@> Control Switches: S[0013:Atacar monstro] = ON
@> Control Switches: S[0012:Atacar(escolhendo)] = OFF
@>
: Branch End
@> Conditional Branch: V[0043:MENU_KEY] == 6
@> Control Variables: V[0044:cursor_batalha_x] = 8
@> Control Variables: V[0045:cursor_batalha_y] = 183
@> Move Picture: 10, (V[0044:cursor_batalha_x], V[0045:cursor_batalha_y]), 100%, 0%, 0.0 sec, RGBS(100,100,100,100)
@> Control Switches: S[0011:Opções batalha] = ON
@> Control Switches: S[0012:Atacar(escolhendo)] = OFF
@>
: Branch End
And here a video showing the problem:
While I press down button, the cursor just move to the monster and upper-left. But if I press up button, the cursor moves infinitely to upper-left. But this error only occurs if I have 1 or 2 monsters. If I have 3 monsters (max number) works fine.
What can I do to fix that?