Clickable animated picture?

Status
Not open for further replies.

dm604

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,970
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

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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

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

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,970
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

Regular
Regular
Joined
Sep 18, 2021
Messages
52
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,970
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

I'm gonna riff on Macross's "Deculture" and adopt "Descope" as my motto! :wub God knows I'm gonna need it...

As an aside, did any of ya sweeties watch Macross Delta and if so, was it good, bad, or horrible?
Is an extension for the jam time limit from 20 min to 30 min possible? :ysad::ysad::ysad: My entry will have a few battles, it seems >.<
Background and composition study
GAbBmfDaIAAEzVM
Ho, ho, ho and mwah, ha, ha. It appears that I will be getting a leg up on the inclusion of Krampus in the 2023 Game Jam. We arrived in Orlando, FL yesterday and my wife found a Krampus Festival for us to attend tonight! Maybe I will be going home with a Krampus!

Forum statistics

Threads
136,707
Messages
1,268,978
Members
180,430
Latest member
rpgmakergerhnam
Top