Improve some animations

not sure why the "on show, appear, start" was there when there's no "on hide", but it prevents animation from really doing its job
This commit is contained in:
Gouvernathor 2024-04-06 00:19:58 +02:00
parent caa4cd0b2c
commit 1f8e939cf9
4 changed files with 11 additions and 8 deletions

View File

@ -61,8 +61,10 @@ transform blink_repeat:
repeat repeat
transform bob(t=1): transform bob(t=1):
on show, appear, start: animation
subpixel True
yoffset absolute(0) yoffset absolute(0)
block:
ease t yoffset absolute(10) ease t yoffset absolute(10)
ease t yoffset absolute(0) ease t yoffset absolute(0)
repeat repeat
@ -155,4 +157,3 @@ init python:
trans.xoffset = renpy.random.randint(-2, 2) trans.xoffset = renpy.random.randint(-2, 2)
trans.yoffset = renpy.random.randint(-2, 2) trans.yoffset = renpy.random.randint(-2, 2)
return clamp(1.0 - st, 0.05, 1.0) return clamp(1.0 - st, 0.05, 1.0)

View File

@ -1,6 +1,8 @@
transform sprite_fly_idle: transform sprite_fly_idle:
on show, appear, start: animation
subpixel True
yoffset absolute(110) yoffset absolute(110)
block:
ease_back 2.5 yoffset absolute(90) ease_back 2.5 yoffset absolute(90)
ease_back 2.5 yoffset absolute(110) ease_back 2.5 yoffset absolute(110)
repeat repeat

View File

@ -1,2 +1 @@
define ALLOWED_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz " define ALLOWED_CHARACTERS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "

View File

@ -173,8 +173,9 @@ screen achievement_window(msg="", title="", icon=None, xpos=0, ypos=60):
timer 6.0 action Hide("achievement_window") timer 6.0 action Hide("achievement_window")
transform rotate_circular(t=7): transform rotate_circular(t=7):
on show, appear, start: animation
subpixel True subpixel True
block:
rotate 0 rotate 0
linear t rotate 360 linear t rotate 360
repeat repeat