[RMMZ] Pictures keeps showing up even on another map

Due to the nature of the issue, I'm unsure if I should be posting this thread here, or if I should be doing it in the Javascript/Plugin Support forum. But I do know myself, so whatever the issue I'm currently facing is, it's probably something that has nothing to do with the plugins I'm using (even if the problem may be closely related) and it's something way too obvious to anyone who's not myself, so I'll be taking my chances and posting this here anyway.

So, the Issue! You see, I'm currently trying to build my own custom menu with pictures and the likes, completely replacing the standard command menu in the process. And I'm not stopping with just that. In a far more simple affair, I'm creating my own set of custom scenes such as CG Galleries, Achievements Menu, and a Global Shop Scene from scratch by eventing them with the "few" Plugins I'm using at the moment.

The problem lies with the last one I mentioned, and the first I'm currently implementing right now. The Shop Scene.
Spoiler: Welcome to PlaceholderLand!
Example_1.png

Do you see that oddly-shaped yellow button, in the upper-right corner of the screen? Well, that's my "Shop Scene". Well, it's more akin to an "Exchange Shop" than a conventional shop, but well, that's completely unrelated to the issue at hand.

Now, once we touch that button with the click of our mouse...
Spoiler: The Shop Scene
Example_2.png

We would find ourselves in a scene like this.

...Well, it's actually a map, the background is a actually a parallax, and there is no shop scene being processed at all, but in practice, even if it might be more bothersome to put it up together, it's a shop.

At the current moment, none of the buttons do anything (though if you click the girl with your mouse, you can hear a little bit of voice acting purchased straight out of DLSite because I though the girl who recorded her voice makes a good Aoi Yuuki impression) other than being there, so let's go back to the previous scene by clicking on the button of the upper right corner of the screen (again).

Now, it's here where my issue lies in...

Spoiler: Notice any difference? Like the, I dunno, the BUTTONS!?
Example_3.png

I don't think it requires further explanation, given the visual aid, but to put everything in a nutshell, the buttons of my custom shop scene made up completely with pictures, keeps showing up even in a different map.

And what is weird is that it just affects those buttons. Neither the return button, nor the full body portrait of People4_8 are affected by this issue. So, what the **** is happening here?

Now, because just by showing you what my problem won't give you any clue about what am I doing wrong, let me show you what I did, and what I did try to do to solve this issue before asking for your help.



There are two events that might concern this particular issue of mine. One, a map event going by the name of "Buttons" (ID:4), with the other being a common event called "Back/Return Button" (ID:1).

At first, before I even had the suspicion that something could be going wrong, they looked like this.
Spoiler: Attempt #0: In Which Everything Was Supposed to be Fine
Example_5.png
Example_7.png

Other than the Switch (Which I use to have multiple HUD Scenes with Hud Maker Ultra because I don't have the paid version yet), there's nothing particularly special about it. In fact, the Return Button and the Character Portrait are pretty much the same as the Button event, with the only significant difference being the picture in question and some plugin related stuff that should be unrelated to the issue.

The result... Well, you have already seen it before. For some reason, the buttons remain in the screen, even when by all means they should have been erased as soon as we changed maps.

SO, after I found facing this issue, I tried to discover what the problem was in the first place, and a solution to my predicament. It took me little to come to the conclusion that these two things were at fault for everything wrong with my life, but that didn't mean I was off the hook yet. Heck, the quick solution I came up with (a minor alteration that should have bound the "Buttons" event to the HUD Switch) was worth nothing.

This is what I did at the time
Spoiler: Attempt #1: In Which I Try to "Patch" an Issue
Example_4.png
Example_6.png

...And this was the result.

Spoiler: Attempt #1 Results
Example_3.png

...Nope, nothing has changed. The buttons are still there.

Seeing how I basically achieved nothing, I tried to see another way to fix this issue. I mean, there was absolutely nothing wrong with the other buttons, so maybe I was right the first time and I messed it up when I tried to fix it? In my second attempt at fixing this ****, while keeping the switch "ON" in the map event, I went straight for the Common Event and put it back to how it was the first time. And in my THIRD ATTEMPT, because of course it didn't work the second time either, I the only thing I did was move up some events, because I had the idiot thought that maybe it was because it was lower on the page that all of this happened.

To put things in a less confusing way...
Spoiler: Attempts #2 & 3: In Which I Did Basically Nothing
Example_7.png
Example_8.png
Spoiler: Attempts #2 & 3 Results
Example_3.png

Yup. My comedic attempts at solving this issue are wrong, as expected.

Naturally, after I found that I wouldn't be able to half-ass a quick "patch" to this thing, I tried to come with something different to solve the problem. Do you remember how I originally mentioned the ID of both the map event and the common event? Well, that's because in my fourth attempt at dealing with this small complication, I quickly came to the conclusion that if the "Buttons" event was the one causing me this headaches, then maybe the "Buttons" event should be no more. Oblivion shall befall on those who defy the Greater Order and all of that stuff.

translation: I used the common event to affect the move route of the map event, to make it run a script call that erased the aforementioned event. That way, if I left the map and the event was no more, then the pictures by association should be gone too.

Spoiler: Attempt #4: In Which I Try to Thanos-Snap the Pictures
Example_9.png
Spoiler: Attempt #4 Results
Example_3.png

,,,Given that yet again, I achieved nothing, I tried to think a bit outside of the box, and thought: "Hey, what if instead of focusing in the common event, I go straight for the map event? I could create another page or something, with the second page being empty and active only when the HUD Switch is OFF. Like with chests! But with global switches instead of self switches".

...Yup, I went from one box to another box, even if the latter was a fancy treasure box instead of being a representation of my limited perspective.

In other words:
Spoiler: Attempt #5: In Which I Give the Pictures the Chest Treatment
Example_10.png
Spoiler: Attempt #5 Results
Example_11.png
Example_1.png

...On one hand, YES! I FINALLY GOT RID OF THE BUTTONS! HELL YEAHH! On the other hand though... OH MY EFFING GOD, I GOT RID OF THE BUTTONS! WHAT HAVE I DONE!? AAAAAAA-

Suffice to say, while I achieved my goal, I cannot really call this a "victory". It's more akin to taking the toy your children are fighting for and throwing it straight to the trash can than actually solving something. You dealt with the issue, yes, but you didn't solve it.

...Moving on, I started everything again because like hell I'm throwing my hard work to the trash can, and came up with another potential solution. A pretty convenient script call that clears the pictures on screen.

To yet again, put things graphically because it's way more engaging that reading whatever I'm writing up here...

Spoiler: Attempt #6: In Which I Try to (V)anish my Demons
Example_12.png
Spoiler: Attempt #6 Predictable Results
Example_3.png

...Well, at least they're back, I guess, even if I didn't want them back here of all places...



Now, those were all of my attempts at solving this. As you can see, they either did nothing , or if they did, it just made things worse.

So, extra info!

This is the complete list of Plugins I'm using at the moment (some of them like Keke's Menu will soon outlive their existence). I don't know if they might be at fault here for whatever I'm doing wrong with the pictures, but you know what people say, better safe than sorry.

Spoiler: This Project's Plugin List
Example_15.png

And these are some of the other buttons that for some reason, didn't follow the example of the things that made me write this in the first place. The first two are the yellow button that acts as the "Shop Button" alongside the common event that gives it life, and the last one is the "Return Button" itself, the one that has been calling the "Back/Return Button" common event all this time.

Spoiler: The Buttons I don't feel like Murdering them in their Sleep.
Example_16.png
Example_17.png

So, what do you think my issue is? And how to solve it? I'll keep looking for an answer myself, but I would like to hear you scream how I'm missing the obvious or overcomplicating things. Regardless of if you can think of anything, I thank you anyway for reading all of this when you didn't have to. Really, especially since this is not the most engaging and straight-to-the-point post exactly...
1)Did you bind your picture with HUD Maker? For me I use HUD Maker to calculate the screen coordinate, but sometimes I forgot to delete it after that and it shown in my project figuring where it came from the first place.

2)why dont you merge the 2 events 1 common event instead of breaking 2 separate events, that way you have more control instead of creating an unnecessary switch. And you can put all the shop scene in 1 common event, if you separate it like that, does it means the shop is only assessable in that 1 map only
1)Did you bind your picture with HUD Maker? For me I use HUD Maker to calculate the screen coordinate, but sometimes I forgot to delete it after that and it shown in my project figuring where it came from the first place
Nope. Outside of the stuff on the upper left side of the screen (which is where I display my many custom variables), and the stuff on the lower right side of the screen (though ONLY ON THE "NORMAL" MAP, NOT ANY OTHER CUSTOM SCENES), there is nothing else I have bound to HUD Maker.

...That said, I haven't thought of doing that with the tool. Huh. It certainly sounds way better than the getting things right by trial and error.

With your other point, I haven't thought of that. Now that I have the time, I'll give your advice a try to see if it works. But, just to clarify:
  1. the Switch is completely unrelated (it's mostly for HUD Maker) to the event, I just bound it to the map event in hopes of getting rid of the pictures.

    In the Common Event "Back/Return Button" though, it's used to control all of the other "custom variations of the HUD" currently active because the CE in question will be called in more scenes than just this one, and the only reason there aren't more switches inside of it is because said scenes are still a WIP.

  2. Yup. The Exchange Shop is only accessible by going to that one map. It feels more convenient for me and less bothersome to deal with than putting everything together in a single common event. Fortunately, due to the way I'm approaching things from a gameplay standpoint, It wouldn't feel unnatural or forced. If you are another unfortunate victim of that particular rabbit hole, think of it as your run-in-the-mill shop from the average Gacha game you can find on your phone (Grandblue, Magia Record, Princess Connect Re;Dive, FGO, etc).
I'll inform you what happened once I have tested your method. Thank you, my friend! :hhappy:
Quick Update!

I made it work! Well... Sort of. I """"believe""""" I """"solved"""" the issue without implementing the previous solution, but, you see... It's not the most elegant of solutions. I don't even know why it works, when by all means it shouldn't. It's just a mess of spite and frustration spilled all over the event. It shouldn't work.

Spoiler: What the hell...
Example_13 (ANSWER).png
Example_14 (ANSWER).png

I... honestly don't know what to think. What the hell did just happened here?

I ask any moderator that might be lurking around to not close the thread. I want to know what exactly happened and if any of you have an idea about it, I would appreciate if you could explain it to me, because as I have stated above (and I hope this doesn't count as a double-post since this is not a continuation of the previous one):
In the Common Event "Back/Return Button" though, it's used to control all of the other "custom variations of the HUD" currently active because the CE in question will be called in more scenes than just this one, and the only reason there aren't more switches inside of it is because said scenes are still a WIP.

That button is a Global Button that will be featured in many different scenes. Considering what I have done previously, in both my previous attempts at fixing my issue, and what I did just now, this it seems I'm making that particular button an specific thing to that particular scene rather than a global thing that will always get you back to the actual game.

I'm still going to try the previously mentioned solution. Just wanted to make you know about... this.
Quick Update!

I made it work! Well... Sort of. I """"believe""""" I """"solved"""" the issue without implementing the previous solution, but, you see... It's not the most elegant of solutions. I don't even know why it works, when by all means it shouldn't. It's just a mess of spite and frustration spilled all over the event. It shouldn't work.


I... honestly don't know what to think. What the hell did just happened here?

I ask any moderator that might be lurking around to not close the thread. I want to know what exactly happened and if any of you have an idea about it, I would appreciate if you could explain it to me, because as I have stated above (and I hope this doesn't count as a double-post since this is not a continuation of the previous one):


That button is a Global Button that will be featured in many different scenes. Considering what I have done previously, in both my previous attempts at fixing my issue, and what I did just now, this it seems I'm making that particular button an specific thing to that particular scene rather than a global thing that will always get you back to the actual game.

I'm still going to try the previously mentioned solution. Just wanted to make you know about... this.
heyy good job, its a total mess i shall say, although you overkill pic 4, pic 5 and over erase event 4. so now you know its working, now you have to clean it up, as you can see there are many repeating things inside which does the job already and makes your CE looks messy, you will one day look at it and say 'What on earth I did back there'. I suggest you make a copy of the CE and start chipping the unnecessary lines. from what I see, it should be just a few lines. As you said, trial and error is your teacher. Good luck

Original thread: https://forums.rpgmakerweb.com/threads/rmmz-pictures-keeps-showing-up-even-on-another-map.163243/