Problems with in-game menu.

A friend of mine is making a game and for some reason in his game I can't open the menu with right click, can't click on anything in the menu with mouse and at the same time menu itself works pretty slow.

I am not sure what to do since I'm still new to the RPGMaker, but I figured that asking around would bring more results than just trying to figure out what's wrong by ourselves.

1714336284583.png
so far I see it, it should work with the keyboard.
the reason it doesn't work with the mouse is because there is no "TouchInput"
present, so the mouse is rendered useless unless implemented.
so far I see it, it should work with the keyboard.
the reason it doesn't work with the mouse is because there is no "TouchInput"
present, so the mouse is rendered useless unless implemented.
I see, any help for the slow menu part? Friend says that not a lot can be done since its because of the wait frame thing and if he removes it, it just goes on loop..
depends on the slow part and how the menu exactly work as that is not visible.
so it's really hard to tell.

the way I build the evented menu works without problems (just keyboard input).
but will improve it with some new features later on as I use my own menu plugin.

so how yours look like and how it work is the only say to find the problem.
depends on the slow part and how the menu exactly work as that is not visible.
so it's really hard to tell.

the way I build the evented menu works without problems (just keyboard input).
but will improve it with some new features later on as I use my own menu plugin.

so how yours look like and how it work is the only say to find the problem.
We'll try to look into it then, thanks for your help!
One error is the Loop command.

Autorun and parallel events already run continuously, so putting a loop inside of one doesn't mean anything.

That means the Wait 5 frames is never happening, because it's only going to loop that Script command and I don't see anything inside to break out of it.

That could well be causing the lag, especially if there are any other events made similarly.
I don't see anything inside to break out of it
command113 is "Break Loop" 😉
It's a slightly convoluted way of doing an evented menu, but it should work fine from a cursory glance.

I'd recommend putting a "Wait 1 frame" command inside the loop - it should help with it being slow (since now it's going to needlessly run more times than needed).

As for mouse support, what your friend is doing is basically making their own menu system from scratch, so they'd need to actually add mouse support themselves, maybe with a plugin that reacts to clicking on images.
Thank you both ATT_Turan & Mac15001900!
As for mouse support, what your friend is doing is basically making their own menu system from scratch, so they'd need to actually add mouse support themselves, maybe with a plugin that reacts to clicking on images.

Hmm, does that mean that putting TouchInput in the code wont help as much? Or a plugin is just a more easier solution for this? I'll look for one either way, but would it be possible without it?
command113 is "Break Loop" 😉
Good call.

I would personally suggest this is a pretty low-efficiency approach. There are guides to creating evented menus via event commands, but trying to code a menu that's embedded within events seems like not as good an idea to me.

If one is sufficiently proficient with JavaScript to be doing that, it makes more sense to actually recode the scene and how it's managed via plugin instead of wrapping all of its code in events.
Okay, my friend figured some stuff out and now the menu works good! Thanks everyone for your help! (Now quick question, how do i report the thread as resolved? xD)
how do i report the thread as resolved?
By clicking the Report button, and writing 'solved' or something alike. But since I'm here already 😉

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-in-game-menu.168150/