I've got the rotation working, but the problem is, the image starts off misaligned, and after a few rotations, pops back where it should be. Any clue what is happening there and how to fix it? UPDATE: The delay on the misalignment is directly related to the linear speed. Longer rotation time equals that many seconds delay snapping to correct location. Fixed now: Just had to place the xalign and yalign BEFORE the rotation. Feel free to delete, or leave here for next person with similar question.
transform rotate_object:
subpixel True
rotate 0
linear 20 rotate 360
xalign 0.5
yalign 0.5
repeat
screen main_menu():
## This ensures that any other menu screen is replaced.
tag menu
style_prefix "main_menu"
add "gui/pink_1920.png" xalign 0.5 yalign 0.5
add "gui/purp_1920.png" at rotate_object
add "gui/main_menu.png"
Problems with a Rotation on Main Menu
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: 1
- Joined: Sat Nov 11, 2017 2:29 am
- Contact:
Who is online
Users browsing this forum: Ahrefs [Bot]