gRaViJa

Eniko Ghosts of Grace Dev
Veteran
Joined
Mar 16, 2012
Messages
990
Reaction score
653
First Language
Dutch
Primarily Uses
RMMV
Hey everyone. I'm trying to ad an option to the options screen with YEP Options Core plugin that show a picture of the gamepad controls. The code for "OK process code" I have so far:

this.playOkSound();

$gameScreen.showPicture(28, "tut_gamepad", 1, 600, 300, 100, 100, 255, 0)

This works partly: the image is shown but "behind" the menu. Only when I close the menu the image is shown on the playing screen. So my questions are: 1) how can i show the image in front of the menu (is this like z-index?) and 2) How can i remove the image again once the player uses the cancel/esc/x button?

Here's how the configuration menu for a new option function looks like (as a small reminder ^^):
Screenshot 2021-10-22 at 11.34.13.png
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,693
Reaction score
1,805
First Language
Dutch
Primarily Uses
RMMV
maybe you need to add another function at the OK when you press
it again, it remove the image, or by any pressing button it will be removed.

otherwise, it stays on screen.
 

Latest Threads

Latest Profile Posts

I keep thinking up of new changes or improvements... Edit: Forgot to add the image Gimpwork.JPG
Hello, my nickname is Rigomor, but I am also known as Mopsikus. I work on RPG Maker games, and are currently working on a game called Peony of War.
If the world treats you like an enemy... Then the world must be your enemy...
What started as 1 RPG in development on the Nintendo DS, turned into 4 RPGs in development (1 on VX and 3 on VX Ace). Wish me luck.

Forum statistics

Threads
117,294
Messages
1,106,257
Members
153,480
Latest member
Varlen
Top