Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 18, 2013 8:07 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Aug 13, 2012 4:35 pm 
Regular
User avatar

Joined: Sun Jul 29, 2012 11:03 am
Posts: 45
Projects: TooW
I've seen in some renpy games that animating imagemaps are doable. (I think)
I want to do some animating for my main menu buttons. As you already know, hovering and idle does provide that but it's too rough. So, I want it smoother. I prefer using ATL, but I don't exactly know how to implement it onto imagemaps.

Any idea on how to do this? Thanks in advance!
** Example on how I want it... When I hover, the image bobs.

_________________
Current project:
Image


Last edited by cookiegear on Tue Aug 14, 2012 8:47 am, edited 1 time in total.

Top
 Profile Send private message  
 
PostPosted: Mon Aug 13, 2012 5:35 pm 
Veteran
User avatar

Joined: Sat Oct 22, 2011 8:39 pm
Posts: 289
Location: Yomi
Projects: Dark Pleasures, Kiss of Blood, Midnight Park
Organization: Black Cat Alleyway
I couldn't understand what you want, so you'll have to figure out how to make the transform by yourself.
I'll tell you how to trigger them with this simple example.

Code:
transform button_dissolve:
    zoom 1.0
    on hover:
       linear 1 zoom 1.1
    on idle:
       linear 1 zoom 1.0


Then add this to your button:

Code:
        button:
            at button_dissolve


I don't use imagemaps, but it should work on "hotspots" as well.
Hope I could help you :3

_________________
I am now also using my Atlus Online name, AkashanoTenshi. If you prefer to call me that way it's fine.


Top
 Profile Send private message  
 
PostPosted: Tue Aug 14, 2012 2:39 am 
Regular
User avatar

Joined: Sun Jul 29, 2012 11:03 am
Posts: 45
Projects: TooW
Thanks for answering. I understand about the transform but I'm having problem understanding of where to put the code to execute the animation for hotspots.

Like..
Code:
        hotspot (100, 0, 41, 390) action ShowMenu("preferences")

You said it can be done for hotspots, so does it have to be in there?
If so, where must I put it?

_________________
Current project:
Image


Top
 Profile Send private message  
 
PostPosted: Tue Aug 14, 2012 7:56 am 
Veteran
User avatar

Joined: Sat Oct 22, 2011 8:39 pm
Posts: 289
Location: Yomi
Projects: Dark Pleasures, Kiss of Blood, Midnight Park
Organization: Black Cat Alleyway
I made this on a test and worked.

Code:
        hotspot (100, 0, 41, 390) action ShowMenu("preferences") at yourtransform

_________________
I am now also using my Atlus Online name, AkashanoTenshi. If you prefer to call me that way it's fine.


Top
 Profile Send private message  
 
PostPosted: Tue Aug 14, 2012 8:19 am 
Regular
User avatar

Joined: Sun Jul 29, 2012 11:03 am
Posts: 45
Projects: TooW
Kuroneko_rg wrote:
I made this on a test and worked.
Code:
 hotspot (100, 0, 41, 390) action ShowMenu("preferences") at yourtransform

Oh wow it works! Thanks so much for taking your time on doing this :D

Can I ask one more thing?
I use this transform to make smooth hovering on buttons (kinda like fading effect).
Code:
    transform aaaa:   
        on hover:
            alpha 0.0
            linear 0.5 alpha 1.0
        on idle:
            alpha 1.0
            linear 0.5 alpha 0.0

It works but when I move my mouse away, the effect isn't smooth. Is there anything I can add to the transform code to do it like that?

EDIT : Never mind, I got it to work somehow xD

_________________
Current project:
Image


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: Alex


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group