Menu cursor moving up and down.

I can't figure how to make my cursor move up or down. When I press up or down key it move right or left.

Capture d’écran 2022-10-09 092139.png
Capture d’écran 2022-10-09 092424.png
Capture d’écran 2022-10-09 092436.png
Menu_Items.png

Here is the picture of my menu.
Heya,

Are you using the same variable for both left/right and up/down for your custom menu? As I believe that will confuse things, and should split it into X and Y coordinates, for example, so you have a variable maintaining left/right and a separate one for up and down.
Ok
Heya,

Are you using the same variable for both left/right and up/down for your custom menu? As I believe that will confuse things, and should split it into X and Y coordinates, for example, so you have a variable maintaining left/right and a separate one for up and down.
Yes I am I did follow this tutorial, here is the link :
Heya,

Are you using the same variable for both left/right and up/down for your custom menu? As I believe that will confuse things, and should split it into X and Y coordinates, for example, so you have a variable maintaining left/right and a separate one for up and down.
Ok but if i'm doing that, how do I code my positions for my 25 items. Because as you can see in my code on the picture I did
if cursor position = 1 show image, coordinates x, y.

What I'm trying to explain, how will I code my cursor position on my menu icon position.

Like if I take the 2nd square on the second square row how do I code it ?
Edit: Ah, I see the label. This is somewhat confusingly put together so bear with me while I puzzle it out.
I'm gonna try this.
Edit: Ah, I see the label. This is somewhat confusingly put together so bear with me while I puzzle it out.
Yes I put the label on my menu for my main menu so I took my same code and modify it for my item menu.
Can you send me the pictures you're using and I'll put together a way more efficient and easy-to-follow implementation of this for you?
Sure but now im not home itss send it later thanks 🙂
So... From left to right the slots are numbered?

Then when press down, instead of +1, it should be +5 and when pressed up it should be -5.

At least if I understand your intended system right. 😛
Can you send me the pictures you're using and I'll put together a way more efficient and easy-to-follow implementation of this for you?
1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png
9.png
I didn't mean screenshots of your event, I meant the menu images. XD
Its at the top
I didn't mean screenshots of your event, I meant the menu images. XD
I already posted it in the first message
Its at the top

I already posted it in the first message
What about the cursor?
What about the cursor?
Menu_Cursor_Big.png
most use if you event it:
when press Down = +5 or up, -5

so you base system looks around in square

[1]---[2]---[3]---[4]---[5]
[6]---[7]---[8]---[9]---[10]
[11]--[12]--[13]--[14]--[15]
[16]--[17]--[18]--[19]--[20]
[21]--[22]--[23]--[24]--[25]

so when you have this tabel, you know
what number you have when pressing down or left/right.

so if you are on 12 and down +5, you have 17.

so it would be very easy to structure, and whatever you try to do with
the items on a fixed spot, the amount of numbers of the item (if more than 1)
can be difficult.

it's easier done in MV than VXA, but the process is the same.
I can't figure how to make my cursor move up or down. When I press up or down key it move right or left.

View attachment 242320View attachment 242321View attachment 242322View attachment 242323
Here is the picture of my menu.
In the second picture, look at the "menu key == 4"
ur variable "cursor position" its /=1 and I think it need to be -=1.
iT'S WORKING THANK YOU SO MUCH 😀
most use if you event it:
when press Down = +5 or up, -5

so you base system looks around in square

[1]---[2]---[3]---[4]---[5]
[6]---[7]---[8]---[9]---[10]
[11]--[12]--[13]--[14]--[15]
[16]--[17]--[18]--[19]--[20]
[21]--[22]--[23]--[24]--[25]

so when you have this tabel, you know
what number you have when pressing down or left/right.

so if you are on 12 and down +5, you have 17.

so it would be very easy to structure, and whatever you try to do with
the items on a fixed spot, the amount of numbers of the item (if more than 1)
can be difficult.

it's easier done in MV than VXA, but the process is the same.
Ah, good times. I'll hold off on redoing it for you then. ^_^
@shadonokia I'm glad it is working, but you might need more checks,
as you have more rows/colums, to alter them correctly.

@Trihan there are multiple ways, and with a bit of scripting, it might
be even better as well, as you can build this in 3 different ways without
scripting and maybe 2-3 more with scripting for smoothness.

so I think all tips can be helpfull 🙂

Original thread: https://forums.rpgmakerweb.com/threads/menu-cursor-moving-up-and-down.151868/