Is it possible for the game to track the coordinates of a picture?

Hey guys,

Im working on a bullet system, where when you shoot a a target a picture of that bullet flies in that general direction, what id like tho, is that things that collide with that bullet picture, while its flying to the destinion could have some sort of impact. For that i need to be able to track the pictures coordinates while it is moving. I suppose there must be some sort of command to track coordinates of pictures? Like ''$gameMap.picture(1)'' or something?
Would be better to use a kind of projectile system. But making your own definitely makes it more instructive.
If you want to know where pictures are located, take a look at Show picture and Move picture. Just like every other event command they are there. There you can find how to move pictures. And when you know how to move pictures, tracking their positions is just as easy.
@Poryg I know how to show and move pictures from point a to point b. I just want to know where the game stores the picture coordinates at any given time; of picture 1 for example. Am i missing something, because to me its not at all obvious what the script is of the picture coordinates. And keep in mind, im not talking about the coordinates where the picture starts, and where it stops.
And I wanted to teach you how to find it yourself, because it might help you later when you're searching for something. After all, it took you 40 minutes to wait for my answer, but me 10 seconds to find it. 40 if we include opening Sublime text 2.
Alright, the longer version. The solution is in the end.
In rpg_objects there's
Code:
Game_Screen.prototype.movePicture = function(pictureId, origin, x, y, scaleX,
                                             scaleY, opacity, blendMode, duration) {
    var picture = this.picture(pictureId);
    if (picture) {
        picture.move(origin, x, y, scaleX, scaleY, opacity, blendMode, duration);
    }
};
There is one interesting thing. var picture = this.picture(pictureId). Since it's a prototype of Game_Screen, knowing we have Game_Actors in code and $gameActors in practice, Game_Party in code and $gameParty in practice, Game_Map in code and $gameMap in practice, we probably have $gameScreen as well. Knowing that, we can say that
$gameScreen.picture(1) will show us first picture and its properties. If we want to get x and y, it's simply $gameScreen.picture(1).x.
@Poryg It works, although only if I use _x, instead of just x, so thanks for the solution! Also, I appreciate that you tried to give to give a metaphorical net instead of a fish, but when you dont know how to catch fish, youd still starve haha.
What i mean is; that i probably wouldnt have found it with the knowledge i had, even if i had understood that you meant that i should take a look into rpg_objects - i actually thought you were talking about the regular event commands window inside rpg maker.
Your last reply was very informative however, so next time finding my own solution might be easier!

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-for-the-game-to-track-the-coordinates-of-a-picture.94403/