In my game, I have an image bound to an event's x,y coordinates using variables (image x = event map x, ship y = event map y), but the image still moves with the camera rather than staying in place. How do I fix this?
Bind picture to event coordinates using variables?
RPG Maker MV SupportPictures are bound to the screen, not to an event.
If it moves with the screen, then you are not updating the variables on each frame, nor not moving the picture to the new coordinates on each frame.
However, why are you using pictures anyway? Why not just use an event sprite, which is, by default, bound to an event?
If it moves with the screen, then you are not updating the variables on each frame, nor not moving the picture to the new coordinates on each frame.
However, why are you using pictures anyway? Why not just use an event sprite, which is, by default, bound to an event?
I've moved this thread to MV Support. Thank you.
Would I use a parallel process to update the variables on each frames, or does it require something else? I've tried by putting the variables in a parallel process on the map, but the picture still moves. I think the pic is too big for a sprite, as it's the size of the screen. Unless I could make a sprite sheet that's bigger than normal?
Yes you can. Sprites can be any size. Just make a spritesheet that is 3 times the width of the screen, and 4 times the height, and put a $ at the start of the file name.
What you might need to be careful of is that MV does not update events that are a certain distance away from the screen or the player, so it might not be visible at just the right time. If that happens you might need to look for a plugin that allows you to specify which events should be updated outside of the default settings. Or, if the event has no commands, try setting the trigger to parallel process and see if that makes it update even when away from the screen/player.
What you might need to be careful of is that MV does not update events that are a certain distance away from the screen or the player, so it might not be visible at just the right time. If that happens you might need to look for a plugin that allows you to specify which events should be updated outside of the default settings. Or, if the event has no commands, try setting the trigger to parallel process and see if that makes it update even when away from the screen/player.
Thank you! Visibility isn't a problem, but I'll keep that mind too.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/bind-picture-to-event-coordinates-using-variables.115310/