Exactly what the title says. Is there any way to check if a picture is present in position x,y in pixels? I looked around in the internet but didn't find anything like this. If anyone has any idea, or knows a plugin please let me know. Or you can make a plugin for me ^^; I can't pay you though.
Thank you for reading.
Hmm, I'm sure there is, but what exactly are you trying to do?
I'm using Yanfly's Button Common Events to make a common event that checks to see if a switch is activated or not, and if it isn't it pops a picture up and if it is, it takes the picture down, but I'll be using the built in x and y coordinate adjuster to place the image where I want it. I don't know if maybe using a conditional branch within a conditional branch to check for x and y coordinates will help you, but without knowing more and/or which plugins you are using I don't think we can help anymore. Hope this helped though.
I want to check if there is a picture in x,y coordinates.
The reason is to make an inventory system like in the resident evil games. The player can assign their items to slots. But there can't be more than one item in one slot. That's why I need to check if a picture is in a position because I'm going to use pictures instead of icons. If there is already a picture, the condition will return false and the player can't get the item.
I think you're going to this the wrong way.
You could check for pictures, but only by going through the list of all displayed pictures and checking their coordinates.
I think it would be better to come at this from a different direction:
Pictures are only there if they're placed by a command. So have that place in your logic set a switch or variable to tell it "occupied", and check that later.
Another alternative however would be to use a map for your inventory - instead of placing pictures when the command to open the inventory is given, you store current party position, turn the party invisible (or into a cursor) and then use the map grid for inventory, with events as a placeholder for items. This would probably need a lot of eventing to get everything right, but you could use those events more or less directly.
If you use a switch it says it's occupied but if you use a variable you can tell exactly what item is occupying it depending on the number.
If 0: Empty
If 1: Sword
If 2: Shield
If 3: Healing Item
etc.