Issues with playing animation for only ONE selected image at a time

ok ppls! I am here today to pick the brains of my smarter comrades.
In developing Eurydice I have grown quite a bit, but i am lacking some fundamental know how apparently because i have a few things i cant quite seem to get right. In this thread Ill address my puzzle system issue.
The problem:


As you can see.. when the window is clicked in anyway.... the intended hint goes nuts... and all are highlighted.
I have tried several approaches.. all are in the screen shots bellow....
But all end up like this. So... this is an error on my end, i just do not know what im missing.
Note: Each of the 5 pic events are set up the same, thus only showing one of the 5 on this map.

Spoiler: Attempt with two Common Events
1660231218174.png1660231227644.png
Spoiler: Attempt with just the image is clicked on
1660231331061.png
Spoiler: Attempt with Clicked on indicated image
1660231387571.png

Thanks in advance for the assist!
Hmmm, doesn't that touchInput.isTriggered() go off if you press anywhere? So it's activating all your parallel events? Shouldn't you determine what's being touched?
none of your examples ever had a chance of working, because you misunderstood the commands you used.
1) erase event erases map events - it cannot erase common events.
2) exit event processing makes the event jump to its last command. If itis already the last command it does nothing, and in case of a parallel process that process will automatically start with the first command again after that.
Hmmm, doesn't that touchInput.isTriggered() go off if you press anywhere? So it's activating all your parallel events? Shouldn't you determine what's being touched?
thus why i tried indicating which one was clicked in the last example... im pretty sure there should be more in that string but idk what to be honest.
none of your examples ever had a chance of working, because you misunderstood the commands you used.
1) erase event erases map events - it cannot erase common events.
2) exit event processing makes the event jump to its last command. If itis already the last command it does nothing, and in case of a parallel process that process will automatically start with the first command again after that.
ok, so that is two things i have wrong then, what is the correct way? I cant learn if I do not see how its supposed to be, otherwise i'll just keep making the same mistakes like you pointed out.
I think you either need to use some kind of picture touch plugin, or then use something like:

IF:
TouchInput.isTriggered()
control variables 1 = TouchInput.x
control variables 2 = TouchInput.y

And then set the conditionals checking if those x and y coordinates are in your picture area...
I think you either need to use some kind of picture touch plugin, or then use something like:

IF:
TouchInput.isTriggered()
control variables 1 = TouchInput.x
control variables 2 = TouchInput.y

And then set the conditionals checking if those x and y coordinates are in your picture area...
I already use yanflys picture common events (tagged) so wouldn't be conditional touch input branch that you have there be irrelevant for that since it should be that it's when the player interacts with the picture.
but you still have to identify which picture is clicked/ which hint is to be displayed.
nothing I see indicates that you do that anywhere.

and I didn't tell you a solution because I have none, again because I don't know how to identify which click goes to which hint. you'll have to start there for this to work.
I already use yanflys picture common events (tagged) so wouldn't be conditional touch input branch that you have there be irrelevant for that since it should be that it's when the player interacts with the picture.

Ok, I missed your tags, but if you're using that plugin, why are you putting those TouchInput scripts in parallel common events? I quickly googled that plugin and it says that "In the plugin's parameters, you can set common event ID's to each picture ID..."
Ok, I missed your tags, but if you're using that plugin, why are you putting those TouchInput scripts in parallel common events? I quickly googled that plugin and it says that "In the plugin's parameters, you can set common event ID's to each picture ID..."
I tied just putting the command for the animation to play on its own and it overwhelmed the map with continuously looping animation playing. Once I put in as I have it now it stopped looping the animation but now I get all of them playing.
Does that happen even if you set the plugin condition type to 'click' and the common event trigger to 'none'?
Does that happen even if you set the plugin condition type to 'click' and the common event trigger to 'none'?
The image CE has to be parrallel since it is active constantly waiting for player interaction... And the plugin is set to click for the image.
The image CE has to be parrallel since it is active constantly waiting for player interaction..
wrong, that is what the plugin is for.
the plugin checks for player interaction and because of that, the common events have to be set to none for this to work at all.

if you want the common events themselves to check, then you have to remove the plugin and have the common events start to check the coordinates where the mouse clicked and so on, exactly as in the example above that you didn't like.
To do this?



You could do something like this...
Spoiler: Plugin/Common Event Setup
1660244865449.png

1660244883791.png

To make it easier and allow multiple pictures to use the same common event so I could then instead just get the pictureId that was clicked I did write a small addon plugin...
YEP_PictureCommonEvent_Ext Plugin: Click Here to Download
... download that & place that below Yanfly's. This plugin then stores the last clicked picture into $gameMap._lastClickedPicture

In the above common event script the variable "picLink" is a simple object that links the pictures together. Example clicked Picture #1 then links to play the animation on picture #3

Then to play the animation on a picture I used Galv's:
https://galvs-scripts.com/2016/08/17/mv-picture-animations/

Hope that helps?
wrong, that is what the plugin is for.
the plugin checks for player interaction and because of that, the common events have to be set to none for this to work at all.

if you want the common events themselves to check, then you have to remove the plugin and have the common events start to check the coordinates where the mouse clicked and so on, exactly as in the example above that you didn't like.
And this my friend.. is what i was missing.. something STUPID. I was trying to make it all more complicated than it really was. Thank you for the kick in the ass, i can now justifiably stick my head in a hole after i fix this and make it all pretty to match the rest of the game. lol
To do this?



You could do something like this...
Spoiler: Plugin/Common Event Setup
View attachment 237428
View attachment 237429
To make it easier and allow multiple pictures to use the same common event so I could then instead just get the pictureId that was clicked I did write a small addon plugin...
YEP_PictureCommonEvent_Ext Plugin: Click Here to Download
... download that & place that below Yanfly's. This plugin then stores the last clicked picture into $gameMap._lastClickedPicture

In the above common event script the variable "picLink" is a simple object that links the pictures together. Example clicked Picture #1 then links to play the animation on picture #3

Then to play the animation on a picture I used Galv's:
https://galvs-scripts.com/2016/08/17/mv-picture-animations/

Hope that helps?

I thank you for your assistance! It got my mind working more!

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/issues-with-playing-animation-for-only-one-selected-image-at-a-time.150333/