Code: Select all
image magic = "magic.png"
show magic:
yalign .5 subpixel True
rotate 0
linear 5 rotate 360
repeat
Code: Select all
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add gui.main_menu_background
## This empty frame darkens the main menu.
frame:
pass
transform:
pos (220, 635)
alpha 0.5
## When I add linear there is an error
#linear 4 rotate 360
## When I add an AnimatedValue, it fails too
#rotate AnimatedValue(0, 360, 1)
## When I add Animated there is another error
image "tools/magic.png"
When I used AnimatedValue, I have an error because rotate is waiting a float, not an AnimatedValue:File "game/screens.rpy", line 472: u'linear' is not a keyword argument or valid child for the transform statement.
I would like that the magic image turn on itself on the center of the main menu. Is there someone who can help me?TypeError: unsupported operand type(s) for*: 'AnimatedValue' and 'float'.