Clickable animated picture?

Status
Not open for further replies.

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
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.
 

Attachments

  • Annotation 2021-10-13 024224.png
    Annotation 2021-10-13 024224.png
    759.3 KB · Views: 9

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,846
First Language
English
Primarily Uses
RMMV
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).
 

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
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).
 

Attachments

  • Annotation 2021-10-13 130551.png
    Annotation 2021-10-13 130551.png
    220.7 KB · Views: 4

uglywolf

Veteran
Veteran
Joined
Nov 9, 2015
Messages
68
Reaction score
83
First Language
Malay
Primarily Uses
RMMV
What happens if its on Map instead?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,846
First Language
English
Primarily Uses
RMMV
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
 

dm604

Veteran
Veteran
Joined
Sep 18, 2021
Messages
51
Reaction score
17
First Language
English
Primarily Uses
RMMZ
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.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,718
Reaction score
15,846
First Language
English
Primarily Uses
RMMV

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Had a funny feeling about my laptop last night so I moved my project over to desktop via thumbdrive, just experienced my first corrupted project and couldn't be happier about the timing!! *proceeds to copy file onto every thumbdrive in the house*
Test game. Find something broken. Fix. Re-test game. Broken thing fixed but new thing broken that wasn't before. What?!?! Uhg! :kaoangry:
I watched this youtube video of this reporter that went to a Flat Earth Conference. And there was just a whole lot of stupid in one room.

Forum statistics

Threads
122,074
Messages
1,146,300
Members
160,356
Latest member
tomboz
Top