I know the animation coding is supposed to go under "label splashscreen" in script.rpy, but I'm running into errors by simply moving the ATL coding from screens.rpy to script.rpy.
Script:
Code: Select all
# The game starts here.
label splashscreen:
image sparkle = SnowBlossom("ui/glow1.png", count=70, border=0, xspeed=(15, 20), yspeed=(5, 20), start=1.5, fast=True, horizontal=True)
transform logo_title:
alpha 0.0 xpos 140
pause 0.9
alpha 0.1
pause 0.08
alpha 0.2
pause 0.08
alpha 0.4
pause 0.08
alpha 0.6
pause 0.08
alpha 0.8
pause 0.08
alpha 1.0
pause 0.5
linear 0.8 ypos 120
transform mm_navi:
alpha 0.0
pause 2.5
alpha 0.1
pause 0.1
alpha 0.2
pause 0.1
alpha 0.4
pause 0.1
alpha 0.6
pause 0.1
alpha 0.8
pause 0.1
alpha 1.0
pause 0.1
return
label start:
Code: Select all
screen main_menu:
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
window:
style "mm_root"
#add "logo_blend"
add "ui/logo.png" ypos 200 at logo_title
#add "sparkle" at sparkle_enter
add AlphaBlend("ui/logo.png", Frame(Null(), 10, 10), "sparkle", alpha=True) ypos 200 at logo_title
imagebutton auto "ui/mm_start_%s.png" xpos 560 ypos 460 focus_mask True action Start() at mm_navi activate_sound "sound/magic_string_spell1.wav"
imagebutton auto "ui/mm_load_%s.png" xpos 560 ypos 505 focus_mask True action ShowMenu("load") at mm_navi
imagebutton auto "ui/mm_pref_%s.png" xpos 500 ypos 550 focus_mask True action ShowMenu("preferences") at mm_navi
imagebutton auto "ui/mm_quit_%s.png" xpos 560 ypos 595 focus_mask True action Quit(confirm=False) at mm_nav
init -2 python:
# Make all the main menu buttons be the same size.
style.mm_button.size_group = "mm"