I am trying to insert some transformations I grabbed from the Cute Demon Crashers so that the characters bounce forward when talking to you, and bouncing back when theyre done talking.
This is what I get when trying to run the code with the transformations just placed next in the block of my define transformation chunk.
Code: Select all
While running game code:
File "game/script.rpy", line 22, in script
show celestina at center with speak
Exception: Parameter 'new_widget' is not known by ATL Transform.
Code: Select all
init -1:
# -- Transitions to use with set_state() ---------------------------
python:
with_dissolve = Dissolve(0.5, alpha=True)
# -- Music ---------------------------------------------------------
music_claire = "assets/music/Orangebeat - Claire Suite.mp3"
music_akki = "assets/music/Orangebeat - Akki.mp3"
music_mirari = "assets/music/Orangebeat - Mirari.mp3"
music_kael = "assets/music/Orangebeat - Kael.mp3"
music_orias = "assets/music/Orangebeat - Orias.mp3"
music_daily = "assets/music/Orangebeat - Daily Life Suite.mp3"
music_lullaby = "assets/music/Orangebeat - Daily Life Suite_Loop_2_lullaby.mp3"
music_romance = "assets/music/Orangebeat - Daily Life Suite_Loop_3_romancing.mp3"
music_tension = "assets/music/Orangebeat - Romantic Tension.mp3"
music_love = "assets/music/Orangebeat - Love.mp3"
music_silly = "assets/music/Orangebeat - Silliness.mp3"
# -- Simple transforms ---------------------------------------------
transform resize_sprite:
zoom 0.6
transform speak:
linear .2 yanchor .9
linear .2 zoom 1.15
transform endspeak:
parallel:
linear .2 zoom 1
linear .2 yanchor .99
parallel:
yoffset 100
Code: Select all
init:
transform reset:
alpha 1 rotate None zoom 1 xzoom 1 yzoom 1 align (0, 0) alignaround (0, 0) subpixel False size None crop None
# These are positions that can be used inside at clauses. We set
# them up here so that they can be used throughout the program.
transform left:
xpos 0.0 xanchor 0.0 ypos 1.0 yanchor 1.0
transform right:
xpos 1.0 xanchor 1.0 ypos 1.0 yanchor 1.0
transform center:
xpos 0.5 xanchor 0.5 ypos 1.0 yanchor 1.0
transform truecenter:
xpos 0.5 xanchor 0.5 ypos 0.5 yanchor 0.5
transform topleft:
xpos 0.0 xanchor 0.0 ypos 0.0 yanchor 0.0
transform topright:
xpos 1.0 xanchor 1.0 ypos 0.0 yanchor 0.0
transform top:
xpos 0.5 xanchor 0.5 ypos 0.0 yanchor 0.0
transform sideleft:
xpos 0.003 xanchor 1.8 ypos 1.0 yanchor 1.0
transform sideright:
xpos 0.003 xanchor 0.8 ypos 1.0 yanchor 1.0
# Offscreen positions for use with the move transition. Images at
# these positions are still shown (and consume
# resources)... remember to hide the image after the transition.
transform offscreenleft:
xpos 0.0 xanchor 1.0 ypos 1.0 yanchor 1.0
transform offscreenright:
xpos 1.0 xanchor 0.0 ypos 1.0 yanchor 1.0
transform default:
alpha 1 rotate None zoom 1 xzoom 1 yzoom 1 align (0, 0) alignaround (0, 0) subpixel False size None crop None
xpos 0.5 xanchor 0.5 ypos 1.0 yanchor 1.0
# ATL transitions
$ slowdissolve = Dissolve(1.0)
transform locationchange(new_widget, old_widget):
delay 1.0
contains:
new_widget
truecenter
zoom 2.0 alpha 0.0
ease 1.0 alpha 1.0 zoom 1.0
contains:
old_widget
truecenter
zoom 1.0 alpha 1.0
ease 1.0 alpha 0.0 zoom 2.0
transform speak:
linear .2 yanchor .9
linear .2 zoom 1.15
transform endspeak:
parallel:
linear .2 zoom 1
linear .2 yanchor .99
parallel:
yoffset 100