Is there a way for a transform to trigger for a specific character whenever their dialogue is on screen?
I basically want to zoom in the sprite a bit whenever they talk and zoom out when not.
Triggering animation whenever character speaks
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.
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.
-
- Newbie
- Posts: 5
- Joined: Mon Jan 01, 2018 5:44 pm
- Soundcloud: dirtydonnie
- Contact:
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Triggering animation whenever character speaks
You are looking for Character Callbacks: https://www.renpy.org/doc/html/character_callbacks.html
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
-
- Newbie
- Posts: 5
- Joined: Mon Jan 01, 2018 5:44 pm
- Soundcloud: dirtydonnie
- Contact:
Re: Triggering animation whenever character speaks
can you give an example of how? im really lost.
I want this to happen:
and i tried this using the example:
but it doesnt work.
I want this to happen:
Code: Select all
show pl at zoomin
pl "Placeholder text"
show pl at zoomout
Code: Select all
init python:
def plzoom(event, interact=True, **kwargs):
if not interact:
return
if event == "show_done":
show pl at zoomin
elif event == "slow_done":
show pl at zoomout
define pl = Character("pl", callback=plzoom)
Who is online
Users browsing this forum: Majestic-12 [Bot]