There's something I've been wondering about the show picture command; y'know the way you assign a number to a picture when you show it, and you use said number for the clear picture command etc? Is that number then assigned to that picture throughout all events, or just in the one you use the picture in? If so, what about common events/if you want to clear a picture from another event? I find it awfully confusing trying to keep track of what number belongs to which picture. Apologies if this is a silly question!
How exactly do the picture numbers work?
RPG Maker VXAce SupportEDIT: this post contents are TOTALLY WRONG! Read it only if you want to laugh a bit about my mistake (explained in my next post).
You can only delete a picture in the same event you used to show it. I tried few things and apparently that's the only way. If you want a picture to stay on the screen even when you change map and you can no longer erease it using the same event you should probably freeze your graphics or snap it to bitmap and then erease your picture. After that you can move to another map and do whatever you want, the screen will stay frozen untill you tell it to refresh.
For more informations about that press F1 and type Graphics in your search bar. The methods I am talking about are listed there.
@Heirukichi I may be misreading you, but my understanding is rather different in certain key points.
You say that pictures can only be deleted in the event in which they are shown. Not so. Many of my maps have lighting effects which are produced by the 'Show Picture' command. Certainly I erase the event in which I have that command because this is done with a parallel process so that the picture is shown from the moment that the map is loaded. However, I erase the picture on the transfer event out of that map. It can be done within the same event e.g. a cut scene where I show something for a short while and then remove it. But that is not obligatory.
If you want the same picture to show when you change maps, then you do nothing. It will continue to show until you have a specific command to erase it. So there is no need to freeze graphics or use a bitmap at all. Then on your new map you erase it when you are finished with it, if that is what you want to do.
@Seerfree The number stays with the picture until you erase it. Then you can reuse that number. There is no obligation to tie a number and a picture together. However, you will cause yourself a lot of grief if you use the number again for a different picture before you have erased the first one. As I am unlikely in my games to have more than 2 pictures showing at the same time, then I only use numbers one and two - ever. I erase the picture when I leave the map and so the number is available to me again. The only problem with erasing a picture from a common event comes if you do not know exactly when that common event will be run. This, however, will be quite rare. If you think that you might have that, then use a number which you know will not be in use elsewhere e.g. number 99.
You say that pictures can only be deleted in the event in which they are shown. Not so. Many of my maps have lighting effects which are produced by the 'Show Picture' command. Certainly I erase the event in which I have that command because this is done with a parallel process so that the picture is shown from the moment that the map is loaded. However, I erase the picture on the transfer event out of that map. It can be done within the same event e.g. a cut scene where I show something for a short while and then remove it. But that is not obligatory.
If you want the same picture to show when you change maps, then you do nothing. It will continue to show until you have a specific command to erase it. So there is no need to freeze graphics or use a bitmap at all. Then on your new map you erase it when you are finished with it, if that is what you want to do.
@Seerfree The number stays with the picture until you erase it. Then you can reuse that number. There is no obligation to tie a number and a picture together. However, you will cause yourself a lot of grief if you use the number again for a different picture before you have erased the first one. As I am unlikely in my games to have more than 2 pictures showing at the same time, then I only use numbers one and two - ever. I erase the picture when I leave the map and so the number is available to me again. The only problem with erasing a picture from a common event comes if you do not know exactly when that common event will be run. This, however, will be quite rare. If you think that you might have that, then use a number which you know will not be in use elsewhere e.g. number 99.
@ksjp17 You are totally right and I admit that test I made before was a huge epic fail. Just to laugh a bit about that together...
Here is the picture of the map I used. The event on the left shows the picture, if triggered again it deletes it. The event on the top deletes the picture on action button, the event on the bottom turns on a switch that triggers a parallel process to erease the picture.
THE EPIC MISTAKE:
Seriously, when I realized what happened I was like this > (😳) :headshake:
I guess that being awake for 33 hours really doesn't help brain capabilities XD
@Seerfree Please do not consider what I wrote before, it was due to a very stupid mistake.
Here is the picture of the map I used. The event on the left shows the picture, if triggered again it deletes it. The event on the top deletes the picture on action button, the event on the bottom turns on a switch that triggers a parallel process to erease the picture.
THE EPIC MISTAKE:
Since the top event and the bottom even have no sprite the engine sets them to be Below Characters...this meand that when i pressed the action button to activate them they didn't triger...anyway yes, you're totally right. I'll edit my previous post to avoid confunding the readers.
Seriously, when I realized what happened I was like this > (😳) :headshake:
I guess that being awake for 33 hours really doesn't help brain capabilities XD
@Seerfree Please do not consider what I wrote before, it was due to a very stupid mistake.
View picture numbers as slots basically. That particular slot number is displaying picture X and yes, you can decide to erase or manipulate the content of that particular ''slot'' later on if you want, via just about any sort of event. Also keep in mind that the higher the picture number, the higher the priority is. So if picture 1 and 6 are overlapping, picture 6 is displayed above 1.
If you have a lot of pictures, I'd suggest making a bit of documentation. That's what I personally did because keeping track of can be a pain like you said.
If you have a lot of pictures, I'd suggest making a bit of documentation. That's what I personally did because keeping track of can be a pain like you said.
Pictures are awesome in Ace, since you can have up to 99 of them at the same time. 99 is the highest number, so the pictures with ID 99 will overlap all other pictures, whereas picture ID 1 will be at the bottom. They're basically a way of giving an ID to a certain picture, as well as giving it an order.
The picture ID is NOT tied to an event, it is global. So if you show a picture, that picture will stay on the screen until you erase it, using the ID number.
An example of something made with pictures:
There are about 7 pictures here, all set up using a common event. There's the background, which has ID number 1 so that all other pictures can overlap it. There's the guy in question, he's made up of about 5 different pictures to show a different expression (ID number 3 through 8 respectively). And then there's the window box, which is also a picture (picture ID 99 to make sure it will always overlap everything).
I use the picture IDs to move the pictures around, and to erase them when needed, all in a common event. So yes, they are global, and the picture ID's are so you can keep track of them (to erase or remove the right one after all), and to assign them their place among the other pictures (should it be below or above a certain picture?). The higher the number, the higher priority the picture will have and overlap all others!
The picture ID is NOT tied to an event, it is global. So if you show a picture, that picture will stay on the screen until you erase it, using the ID number.
An example of something made with pictures:
There are about 7 pictures here, all set up using a common event. There's the background, which has ID number 1 so that all other pictures can overlap it. There's the guy in question, he's made up of about 5 different pictures to show a different expression (ID number 3 through 8 respectively). And then there's the window box, which is also a picture (picture ID 99 to make sure it will always overlap everything).
I use the picture IDs to move the pictures around, and to erase them when needed, all in a common event. So yes, they are global, and the picture ID's are so you can keep track of them (to erase or remove the right one after all), and to assign them their place among the other pictures (should it be below or above a certain picture?). The higher the number, the higher priority the picture will have and overlap all others!
@Heirukichi No one, but no one, should stay awake for 33 hours. It's cruelty. It's not surprising, therefore, that you weren't at your shining best.
Hope you can get some sleep now.
Hope you can get some sleep now.
Original thread: https://forums.rpgmakerweb.com/threads/how-exactly-do-the-picture-numbers-work.71363/
