Page 1 of 1
How to make all images have their y-aligned higher?
Posted: Fri Jun 19, 2020 11:53 pm
by AlexThekidMG
I am making a game and I need all of my images to be y-aligned higher and not touch the bottom of the screen. I know you can put "at" at the end of "show" with the x and y-align but that is a lot of manual work. Is there an option somewhere or a code I can add that will let me increase the y-alignment of an image?
Re: How to make all images have their y-aligned higher?
Posted: Sat Jun 20, 2020 10:31 am
by Alex
When you write
'left' (and all the others) are a transforms, so you can re-define them in your script
Code: Select all
# 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
# 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
(change the ypos)