Hi, everyone. I have been using the ButtonPicture plugin that comes as a default with MZ for quite a long time. However, I observed something today that I have never seen before and I would really like to know how this plugin works so I can understand what happened.
Here are the simple facts of what apparently happened:
However, it appears that multiple ButtonPictures can be active in the exact same spot and clicking on them will activate them all. In my example, the image that was farthest below was triggered first. I just tested this again and the same thing happened.
I looked at the ButtonPicture code, but I don't know enough to understand it.
Can anyone help me understand what is happening so I can understand why both ButtonPictures can be clickable at the same time when stacked?
LONG EXPLANATION: For those who wonder why in the heck would Zombie stack images like that.
Essentially, for my Sudoku Puzzle game, I have a bunch of clickable images on the screen. To implement the ability for the player to change the background, I just added a Show Picture for a black screen and then Show Pictures for the clickable options to change the background while the main game puzzle sits underneath. So there are all the clickable pictures for the main game, then that is temporarily covered by a black screen image, and then new clickable pictures are shown on top of that so the player can click to change the background. When the player is done, the change background pictures are all removed.
It never occurred to me that the clickable pictures would just happen to be on top of each other and that they both could be clicked on even though one was covering the other.
This means I will probably have to explore learning how to make a new window to do this since I would hope that a new window on top of the main game screen wouldn't experience the same problem.
I hope how I explained this makes sense.
Anyway, again, I am trying to understand why this works the way it does and I would greatly appreciate if anyone can explain it to me in simple, easy for a Zombie to understand words.
Thanks in advance!
Here are the simple facts of what apparently happened:
- Show Picture #1 on screen with ButtonPicture active for Picture #1 so it can be clicked on to call a Common Event
- Show Picture #2 completely covers Picture #1 but not clickable (No ButtonPicture active)
- Show Picture #3 is also on top of Picture #1 & #2 with its own ButtonPicture active for Picture #3
- When I clicked on Picture #3, the Common Event for Picture #1 was triggered and then the Common Event for Picture #3 was triggered
However, it appears that multiple ButtonPictures can be active in the exact same spot and clicking on them will activate them all. In my example, the image that was farthest below was triggered first. I just tested this again and the same thing happened.
I looked at the ButtonPicture code, but I don't know enough to understand it.
Can anyone help me understand what is happening so I can understand why both ButtonPictures can be clickable at the same time when stacked?
LONG EXPLANATION: For those who wonder why in the heck would Zombie stack images like that.
Essentially, for my Sudoku Puzzle game, I have a bunch of clickable images on the screen. To implement the ability for the player to change the background, I just added a Show Picture for a black screen and then Show Pictures for the clickable options to change the background while the main game puzzle sits underneath. So there are all the clickable pictures for the main game, then that is temporarily covered by a black screen image, and then new clickable pictures are shown on top of that so the player can click to change the background. When the player is done, the change background pictures are all removed.
It never occurred to me that the clickable pictures would just happen to be on top of each other and that they both could be clicked on even though one was covering the other.
This means I will probably have to explore learning how to make a new window to do this since I would hope that a new window on top of the main game screen wouldn't experience the same problem.
I hope how I explained this makes sense.
Anyway, again, I am trying to understand why this works the way it does and I would greatly appreciate if anyone can explain it to me in simple, easy for a Zombie to understand words.
Thanks in advance!