Animated hover for choices.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
quinnsea
Regular
Posts: 59
Joined: Wed Apr 26, 2017 5:04 pm
Completed: Birch Sapling
Projects: Aspen, Baleen
Organization: Koimarina Games
IRC Nick: quinnsea
Tumblr: bonnievoyage
Soundcloud: nishiikigoi
itch: koimarina
Location: Missouri
Contact:

Animated hover for choices.

#1 Post by quinnsea »

Hello! After slaving in After Effects trying to figure out how to work it, I managed to make a gif that'll move when people hover over their options!

Image

Image

(It's not supposed to loop, but it is supposed to be more transparent. I'll probably fix it up a bit more later.)

The problem is, I usually just change the names of my files to fit the default. But I can't do that since the default name is choice_hover_background.png. I need to make it so it's a .gif, does anyone know how? Or is there another approach I have to take to make this work?

Thanks so much for your help!
ImageImage

quinn / 26 / qa analyst, game design hobbyist
icon by church

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Animated hover for choices.

#2 Post by Imperf3kt »

Use a series of PNGs instead and combine them in Ren'Py using ATL. The documentation has great details on this.
.gif is not supported in Ren'Py
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
quinnsea
Regular
Posts: 59
Joined: Wed Apr 26, 2017 5:04 pm
Completed: Birch Sapling
Projects: Aspen, Baleen
Organization: Koimarina Games
IRC Nick: quinnsea
Tumblr: bonnievoyage
Soundcloud: nishiikigoi
itch: koimarina
Location: Missouri
Contact:

Re: Animated hover for choices.

#3 Post by quinnsea »

Sorry it took me a minute to reply! I think I understand how to put them together as an animation, but I don't know where I should put it in my code.
ImageImage

quinn / 26 / qa analyst, game design hobbyist
icon by church

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot]