Clickable animated picture?

Hi:

Is there any way to create a clickable animated picture?

Please find enclosed my screenshot.

I was able to:
1) Create a picture of a phone on the lower-left of the screen.
2) When user clicks on it, it'll call a common event and open up the phone menu.

My questions:
1) How do I add animation to it? Such as changing opacity to make the icon "blink" and etc.

I also use SR Dude's HUD display. With the HUD, I can create animations very easily, BUT the pictures ARE NOT clickable.

Is there any way I can combine the best of both worlds and create a clickable and animated picture?

Thank you.

P.S. My current silly workaround is to use the HUD for animation and display a transparent picture that is linked to the CE. But this creates other problems, such as the user being able to click on the transparent picture when there's not HUD and etc...As a result, I really hope there's a simple way to do so. Thank you.
To make it blink, add a move route to the phone event with the following:
Code:
Script: this.setOpacity(0);
Wait 5 frames
Script: this.setOpacity(255);
Wait 5 frames

Set it to repeating, then when you want the phone to stop ringing, do another move route with no move commands (or just see first if interacting with it will cancel the move route, which I think it should).
Thank you for your response, Shaz.

I tested it out, but I don't think I set it up correctly because it doesn't seem to work.
Here is my screenshot. Thank you.



To make it blink, add a move route to the phone event with the following:
Code:
Script: this.setOpacity(0);
Wait 5 frames
Script: this.setOpacity(255);
Wait 5 frames

Set it to repeating, then when you want the phone to stop ringing, do another move route with no move commands (or just see first if interacting with it will cancel the move route, which I think it should).
What happens if its on Map instead?
I'm sorry - I was thinking of an event sprite. Remove the move route on the event, and replace it with a series of:

Move Picture (all the details the same, except opacity is 255)
Wait X Frames
Move Picture (all the details the same, except opacity is 0)
Wait X Frames
I'm sorry - I was thinking of an event sprite. Remove the move route on the event, and replace it with a series of:

Move Picture (all the details the same, except opacity is 255)
Wait X Frames
Move Picture (all the details the same, except opacity is 0)
Wait X Frames

Thank you very much! This has worked wonderfully. I'm one step closer to my vision, thanks to you. Take care.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/clickable-animated-picture.141210/