My menu does not work properly

Hi, I've been trying for 3 hours tomake a functionnal menu but it's not working properly.
The cursor stop at the third icon in my menu and come back to the first.
When I press left key, the cursor go to the last icon and the third icon and come back to the first Icon.

Can you help me please.

I want my menu
Capture d’écran 2022-10-06 201602.png


See picture for my code.
Thisis the navigation menu code.
Capture d’écran 2022-10-06 201305.png
I tried to replace control variable +3 for +1 but it does not works.
Why are you jumping your cursor position by 3/5 at a time?
It was an error i did put 1 not 3 but its not working
Code:
@> Conditional Branch: V[0001:MENU_KEY] == 2
  @> Control Variables: V[0002:cursor_position] -= 1
  @>
 : Branch End
@> Conditional Branch: V[0001:MENU_KEY] == 3
  @> Control Variables: V[0002:cursor_position] += 1
  @>
 : Branch End
@> Conditional Branch: V[0002:cursor_position] > 5
  @> Control Variables: V[0002:cursor_position] = 1
  @>
 : Branch End
@> Conditional Branch: V[0002:cursor_position] < 1
  @> Control Variables: V[0002:cursor_position] = 5

  @>
 : Branch End

Try that /\
I uploaded a project showing how I make the movement in the menu.
Code:
@> Conditional Branch: V[0001:MENU_KEY] == 2
  @> Control Variables: V[0002:cursor_position] -= 1
  @>
 : Branch End
@> Conditional Branch: V[0001:MENU_KEY] == 3
  @> Control Variables: V[0002:cursor_position] += 1
  @>
 : Branch End
@> Conditional Branch: V[0002:cursor_position] > 5
  @> Control Variables: V[0002:cursor_position] = 1
  @>
 : Branch End
@> Conditional Branch: V[0002:cursor_position] < 1
  @> Control Variables: V[0002:cursor_position] = 5

  @>
 : Branch End

Try that /\
I uploaded a project showing how I make the movement in the menu.

I tired to make a menu like you with cursor postion x and y. It move on the second icon but it does not move after that it stuck. When Im on the first icon and I press left key, it go to the last icon. This is ok but after that it doesnt move.
I tired to make a menu like you with cursor postion x and y. It move on the second icon but it does not move after that it stuck. When Im on the first icon and I press left key, it go to the last icon. This is ok but after that it doesnt move.
Make the "menu" event an autorun process activated by a switch.
In the "call menu" event, put the part where u set the coordinates of the cursor and the show picture too.
U dont need to put this event (set move route), when the process is set to autorun, the player cant move too.
Look the pictures.
Make the "menu" event an autorun process activated by a switch.
In the "call menu" event, put the part where u set the coordinates of the cursor and the show picture too.
U dont need to put this event (set move route), when the process is set to autorun, the player cant move too.
Look the pictures.
OMG it's working thank you so much I'm so new to this.
My cursor is doing something weird.

And

How to I enter into my menu since I don't have my position anymore.

See the video.

My cursor is doing something weird.
Remove the "wait" option in the "move picture".


And
How to I enter into my menu since I don't have my position anymore.

See the video.


Idk what you mean by that, but if you want to acess the menu again, you need to create an action to exit the menu (erase the pictures, switch off the movement switch and switch on the menu switch)
Remove the "wait" option in the "move picture".



Idk what you mean by that, but if you want to acess the menu again, you need to create an action to exit the menu (erase the pictures, switch off the movement switch and switch on the menu switch)
No I this is ok but I'm talking about enter into the item, notes and hep menu from my main menu since I don't have my position 1,2,3,4,5 do I need to write the position as an if variableX = position of Item icon ?
Capture d’écran 2022-10-07 161113.png
No I this is ok but I'm talking about enter into the item, notes and hep menu from my main menu since I don't have my position 1,2,3,4,5 do I need to write the position as an if variableX = position of Item icon ?View attachment 242143
Yes, just that 😀
Yes, just that 😀
Thank you for all your help :LZSkiss:
Is the order of my code lines are good because the notes menu wont open but I did calculate the distances between each icon

Only the first icon (item) is working
thank you again!

Original thread: https://forums.rpgmakerweb.com/threads/my-menu-does-not-work-properly.151816/