Brainstorm with me a bit here. I'm using RPGMVXA.
How would I find x and y for say image x (lets say 7) If I can find this out I can most likely store the information into a variable.
This would be SUPER helpful.
Thank you in advance all you awesome people!
(Also please move this if it's in the inappropriate place, not sure where this should go).
I think it's the other way around, you use variables to set the location of the image, and don't alter those until you finished using the image..
If I had wanted that, I would have asked for it ^_^
Thank you for trying to help! Appreciated! But I need to basically "intercept" wherever the image is on that path. Since it's already in motion I need it's current x and y location I need it for quite a specific reason.
This information get's sent somewhere. It has to calculate it I just need to find how to intercept/grab those values.
I tried something like game.picture.x and game.picture.y; those give me some totally whacked variable numbers. I'm just doing guesswork atm.
It tells me undefined method 'x' for # $game_pictures
<NoMethodError>
And no. The images are not set by a variable. I'm using a script that fixes the pictures in place and gives them pixel collision. And then I'm running Tsukihime's image wrapper on top. So I'm using this as a script command: move_pic(7, 94*32, 20*32, 50, 50)
The *32 is to move it by the tile so I don't have to figure out exact pixel positions unless I need to.
Thank you for your help so far!
oh wait, forgot to add the index
$game_map.screen.pictures[id].xid would the id of the imagePS: if it fixes them in place, then can't you just use those coordinates that you used on that move_pic?
Splendid yes it does work!
For various reasons what I'm trying to do is change an image into an event (Essentially by swapping them out). This could happen at any time in the movement of the image.
My issue is still similar tho. It just isn't close enough. It's like the variables don't match (update/frame related perhaps?) or maybe it's because the event sprite is from center and the image is not.
Never the less thank you for your hasty answers <3 I hope I can figure out what is going on.
Edit:
I found unless I divide the number I got by 32 the event just flew away. Maybe that's not a proper correction but it's closer.
You can also set the image's origin to center if it's set to upper left
I feel like I have a barrage of questions. I guess the proper way to do that would be through a script call since I'm already dealing with Tsukihime's image wrapper. Should be enough to manipulate image 7 and set it to center.
Would you happen to know how? I'll keep researching ^_^
THANK YOU sincerely for being so awesome! And sorry about all the questions I'm trying to learn. I wish these things were better documented. I tried looking but only found script calls that mimic functions already available through the "event commands" heheh.
well, IDK of that script so a link will help
or maybe Tsukihime will answer, I saw the name on the viewing list below
that's because it determines the "origin" of the image...
"it"? I think I lost the context there.
the center/upper-left setting...