Hi, sorry Im still relatively new to RPG maker and I used the TDDP Bind Picture To Map Plugin and It works when I walk into the room that its meant to be in but when I leave that room the second image goes on that map too. Does anyone know how to fix it? Also heres some screen shots of what I mean and the commands im using.
MV How do I lock an image from the Bind picture to map to only one map?
Javascript/Plugin SupportWhen you leave the Room, you have to Erase or Hide the Picture Id.
If you need the Script Equivalent Code for the Event Commands, you can find it in here:
forums.rpgmakerweb.com
Edit:
Binding to Map only means, that the Picture will not be fixed in Place on the Screen Position, a Map Screen Coordinate is used instead of Screen Coordinate, thatway it looks like the Picture is fixed to the Map.
It is still a normal Picture and will be visible on every Map until you Erase or Hide the Picture Id.
If you need the Script Equivalent Code for the Event Commands, you can find it in here:
RPG Maker MV / MZ Script Call List
This Script Call list applies to both RPG Maker MV and RPG Maker MZ. Link here to see the entire list. Supplementary Material for RPG Maker MZ: https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mz-script-call-reference.122501/ Have fun eventing~
forums.rpgmakerweb.com
Edit:
Binding to Map only means, that the Picture will not be fixed in Place on the Screen Position, a Map Screen Coordinate is used instead of Screen Coordinate, thatway it looks like the Picture is fixed to the Map.
It is still a normal Picture and will be visible on every Map until you Erase or Hide the Picture Id.
When trying to erase the picture Ill try use a switch, common event or just straight up putting "erase picture" at the end of the command, but either nothing happens and it still looks like that or it comes up with "Cannot read property 'setDimensions' of null, and I've tried watching a million tutorials with the same results.
Please post a screenshot of your event. We can't troubleshoot from your description of it 😉
If you're getting a crash, take a screenshot of that, too, by hitting F12 and going to the Console tab.
Yeah sure sorry about that! Here is me trying to use the common events, switches and then just basic command but all come up with the same thing " Cannot read property 'setDimensions' null".
You might want to look up and go through some tutorials on events (or at least read up on them in MV's instructions).
Parallel (and Autorun) events automatically loop and attempt to execute once every frame, 60 times per second.
It makes no sense that you would be wanting to set several images, set the background, and delete a picture 60 times per second. In fact, it probably doesn't make sense that you want to do all of that more than one time at all.
For that matter, I can't figure out your first event - why do you display an image and immediately delete it within the same event? The player would never see it.
If you want an event to run automatically but just one time, you set it to Autorun or Parallel but turn it off at the end. If you want it to only run once per game, you turn it off by setting a self switch then making a blank second page with the condition of that switch.
If you want it to run one time every time you go onto the map, you turn it off by using the event command Erase Event.
So you need to restructure all of your events and you need to reexamine your logic in that first one, because I don't know what you expect to happen. I'd bet you're getting that crash because you're trying to delete an image before it's finished getting drawn to the screen.
I can't give you any more specific a guess than that because you didn't follow the instructions on taking a picture of the error message.
Parallel (and Autorun) events automatically loop and attempt to execute once every frame, 60 times per second.
It makes no sense that you would be wanting to set several images, set the background, and delete a picture 60 times per second. In fact, it probably doesn't make sense that you want to do all of that more than one time at all.
For that matter, I can't figure out your first event - why do you display an image and immediately delete it within the same event? The player would never see it.
If you want an event to run automatically but just one time, you set it to Autorun or Parallel but turn it off at the end. If you want it to only run once per game, you turn it off by setting a self switch then making a blank second page with the condition of that switch.
If you want it to run one time every time you go onto the map, you turn it off by using the event command Erase Event.
So you need to restructure all of your events and you need to reexamine your logic in that first one, because I don't know what you expect to happen. I'd bet you're getting that crash because you're trying to delete an image before it's finished getting drawn to the screen.
I can't give you any more specific a guess than that because you didn't follow the instructions on taking a picture of the error message.
i would like to reiterate that I am still new so somethings are taking me longer to learn then others and coming on here was a last resort since I’ve watched so many tutorials but keep getting stuff wrong, but the reason I had two pictures is because I watched Echo607’s tutorial on parallax mapping where she did what I did but with out “erase picture”, the one I was trying to delete was the upper layer that consisted of the kitchen island in the centre and the light since I wanted those both to be above the player, i didn’t want to delete it from that room directly, I wanted to get rid of it in the other rooms I made since it would stay in the same area when I went to another room.
although for now I think I’ve found another solution to my problem.
I'm sorry, I'm not sure what that means. I didn't say it's bad for you to need time to learn things - I am trying to point out specifically what you need to learn about.
And no one has said it's wrong for you to ask a question here, or it should be a last resort. I have a hard time figuring out the rest of that paragraph, but try some of the advice I gave you previously and see if it fixes the problems you're having.
As for Echo607's tutorial, if you look at 4:39 she does in fact have an Erase Event command at the end of her event, which is one of the things I described to you in my previous post. So your event does not accurately copy hers.
And no one has said it's wrong for you to ask a question here, or it should be a last resort. I have a hard time figuring out the rest of that paragraph, but try some of the advice I gave you previously and see if it fixes the problems you're having.
As for Echo607's tutorial, if you look at 4:39 she does in fact have an Erase Event command at the end of her event, which is one of the things I described to you in my previous post. So your event does not accurately copy hers.
I’m sorry I have a rough time understand tones over messages so I’m sorry that I sounded a bit rude. But while I have tried using the erase event command at the end of my event, it also ended in the same way which is why I tried experimenting and you can see in my common event picture further up that I did have an erase event command at the bottom of my event, and ive seen other people say that the image needs to be erased at some point which is where I got confused.
I see one parallel event with Erase Event, but your first one (which is the most confusing) does not.
I also see your Common Event has Erase Event, which does nothing.
So my prior recommendation of going back to some more of the fundamentals stands - you should understand how the different kinds of events work, and what the individual event commands do, before trying to copy a more advanced thing.
You erase the picture when you intend to, when you want it to go away.
As a parting forum tip - if you try to break your posts into smaller sentences and then have line breaks every couple of sentences, it makes it much easier for other people to read and understand what you're saying 🙂
Good luck with your project!
I also see your Common Event has Erase Event, which does nothing.
So my prior recommendation of going back to some more of the fundamentals stands - you should understand how the different kinds of events work, and what the individual event commands do, before trying to copy a more advanced thing.
Okay, yes, it needs to be erased at some point, but just looking at your event logically - if you tell the same event to show a picture and then five lines lower erase it, what will that do? Nothing, as far as the player is concerned.
You erase the picture when you intend to, when you want it to go away.
As a parting forum tip - if you try to break your posts into smaller sentences and then have line breaks every couple of sentences, it makes it much easier for other people to read and understand what you're saying 🙂
Good luck with your project!
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-lock-an-image-from-the-bind-picture-to-map-to-only-one-map.157548/