Mouse Picture Follow

Hello! I am finished with most of my initial code for my RPGMaker Game and am now focusing on aesthetics and polish. One of the things I was looking to do was to make a sort of follow effect. When you move your mouse pictures would follow slightly, kind of like follow me eyes.

I know there's this Moghunter plugin to do the thing I want but I could not figure out how to make it work for the life of me as it always states its missing. * Yes, I tested it out on a clean game* Instead, I'll try constructing something on my own.

I'm a beginner at coding so sorry in advance.

This is the kind of effect I was searching for.

picture_up (1) (1) (1) (1).gif


I don't know why it's kind of fast.

What I want to know is some things I should try, whether that be plugins, a string of code, or any other ideas you may have. I may ask for a lot of clarification so please be patient with me.

Sorry if this is wrong and thank you for reading my help request

I've moved this thread to MZ Support (from MZ Tutorials). Thank you.

(Tutorials is for sharing tutorials that you have written.)

One possibility may be to use Move Picture (1 frame duration) with variable coordinates on repeat, e.g. in a Parallel event. You can store the current screen coordinates for touch/mouse input using Control Variables -> Script:
  • TouchInput.x
  • TouchInput.y
With this approach you'd have to do any parallax calculations yourself.

Alternatively, if you prefer to use a plugin...that animated GIF you posted is by Moghunter:
I imagine the plugin itself works, so maybe someone can help you figure out how to use it correctly~
I believe there is demo attached (like MV), so you could check
the demo out where it showcased and check the events (if there is any).
or the parameters how its set up.

creating your own like this as beginner coder can be quite advanced,
if you target parallax, and it could be stacked in the length (1-5)
than the calculations might be done by that automatically.

same if you stake or could stack 1-9 or 1-3.

so see if there is a demo and check it out.
it explain all his plugins and see the plugin in action, how to use.
if it doesn't, it may be a plugin conflict.

Original thread: https://forums.rpgmakerweb.com/threads/mouse-picture-follow.179309/