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,647
Reaction score
15,738
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
67
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,647
Reaction score
15,738
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,647
Reaction score
15,738
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

Marketing seems to be about reducing dependence on luck to sell a product, as well as expanding the number of avenues in which luck can play a role in selling a product.
So, I've been wanting to do this randomized logic puzzle in my game for years now. I finally figured out how to do it by using arrays and a few small script calls. It's based on the Einstein Fish Puzzle! :D Though, I have no idea how to actually have the player put in answers.... might start a thread about it.

The projectiles shown in this video are as follows:
1, Basic Triple
2, 30-Degree Arc
3, Randomized Blast Wave
4, 8-way
5, 8-way Double
6, 8-way Slowness
7, 120-Degree Arc Repetitive
8, Projective Triple
9, Split 8-way
10, 2-way Split Randomized Arc
11, HP-MP Split Arc
12, Split Laser
13, Shock
14, Cosine
Drop shadows and water reflections tests in RPG Maker VX Ace


BgI3F80.png
I'm doing a fairy tale project Little Red Riding Hood and the Woodsman. I'm almost done with the demo in my native language and I intend to make a demo version in English as well. I'm just going to use the translator because I don't know the pronunciations very well, I only know how to say "Hey" and nothing else.. :kaoswt2:

Forum statistics

Threads
118,620
Messages
1,117,395
Members
155,705
Latest member
Steve7654
Top