Problem with the picture of my game pad and a flash picture

Hi all i hope u are fine 🙂.

I have a small problem with my gamepad, if I put it in number (1 to 7) under the flash (image number 10) it appears under the flash so we no longer see the images of the gamepad even if we can still click on it.



On the other hand if I put my game pad on numbers after the flash, (11/17) the gamepad appears on the flash but we can no longer click on it the character no longer reacts if he is on it and does not move. .





For the gamepad i use Yep_PictureComonEvents, it link a common event to a picture:










and for the flash who follow the hero i use just this :





Anyone would know how to rectify this problem please?

Thank's for your time ^^



Edit: I just see i posted it to the wrong place .... Sorry moderators can you switch it to the good place?^^
Moved to Plugin Support.

This is just a guess, but I'm thinking Yanfly's plugin might only consider events that are attached to the topmost picture (highest Index) at a given X/Y coordinate. If there's a way around that, someone might be able to help you on this board.

In the future, if you can, it's better to attach pictures to your post using the "ATTACH FILES" link under the box where you type, and then choosing Insert Pictures wherever you want to show them in your post - instead of hosting them at an outside site. This will make it easier for people to expand the pictures without leaving the forum page, and will also make sure the picture can always be seen here even if your image-hosting site changes its rules for displaying things on forums.
Is your flashlight picture a constant at the same position? I assume it is, because that way it would remain centered etc.

If that is the case, simply trick the engine: make the flash picture transparent at exactly the positions of the buttons, allowing them (and only them) to shine through when the flash picture is on top.
Moved to Plugin Support.

This is just a guess, but I'm thinking Yanfly's plugin might only consider events that are attached to the topmost picture (highest Index) at a given X/Y coordinate. If there's a way around that, someone might be able to help you on this board.

In the future, if you can, it's better to attach pictures to your post using the "ATTACH FILES" link under the box where you type, and then choosing Insert Pictures wherever you want to show them in your post - instead of hosting them at an outside site. This will make it easier for people to expand the pictures without leaving the forum page, and will also make sure the picture can always be seen here even if your image-hosting site changes its rules for displaying things on forums.


Thank's for moved this, okay i will upload by this way for the next time thank's for your answer ^^


Is your flashlight picture a constant at the same position? I assume it is, because that way it would remain centered etc.

If that is the case, simply trick the engine: make the flash picture transparent at exactly the positions of the buttons, allowing them (and only them) to shine through when the flash picture is on top.


Thank's for your answer, but it dont will work because as you can see on the first screen shoot, when the hero's either to the far left of the map, or to the far right of the map (or at the top, or at the bottom), the flash follows the hero so the gamepad is not always in the same place compared to the image flash 🙁

Sry i have a bad english i used a traductor i hope u understand what i try to told ^^
when the hero's either to the far left of the map, or to the far right of the map (or at the top, or at the bottom),
one solution to this is to have a frame of tiles around the map. If you make the map larger in the editor, just having it 10 black tiles in every direction from the places the player can move on, the flsh will always be centered because the player will never reach those hidden tiles in the frame.
one solution to this is to have a frame of tiles around the map. If you make the map larger in the editor, just having it 10 black tiles in every direction from the places the player can move on, the flsh will always be centered because the player will never reach those hidden tiles in the frame.

Thank's mate i will try it when i come back ^^
@MrHeimer sorry but could you pls share me the pictures of gamepads above? I buy the plugin from yanfly hơever cannot find the gamepad pictures 🙁

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-the-picture-of-my-game-pad-and-a-flash-picture.128716/