Any suggestions as to how I can get the Horse_Over image to return to its default position rather than sticking in place? Or if there are any general suggestions of how to do these same basic things in a different/better way, that could be nice too.
Anyways, here's the relevant code, with some commenting:
Code: Select all
image Horse_Under: # This combines the base horse body with the "Rider" dynamic image, which is customizable
contains:
"images/Horse_body.png"
contains:
"Rider"
ypos -590
xpos 180
xpos -60
ypos 120
image Horse_Over: # This is the head.
contains:
"images/Horse_head.png"
xpos -60
ypos 120
image Horse_Under_1: #this is a basic movement cycle
"Horse_Under"
ease 1.5 ypos 300 subpixel True #50
ease 1 ypos 120 subpixel True
repeat
image Horse_Over_1: #this is a basic movement cycle
"Horse_Over"
ease 1.5 ypos 300 subpixel True
ease 1 ypos 120 subpixel True
repeat
image Horse_Animation: # this is the main image container for the horse and rider.
contains:
ConditionSwitch( #this meant to show the static version if Speed is 0, and the animated version if it is 1.
"Speed == 0", "Horse_Under",
"Speed == 1", "Horse_Under_1",
"Speed != 0", "images/nothing.png",
),
contains:
ConditionSwitch(
"Speed == 0", "Horse_Over",
"Speed == 1", "Horse_Over_1",
"Speed != 0", "images/nothing.png",
),
contains:
"images/Foreground_mask.png"
zoom 1.80
ypos -120
xpos -475
label HorseAnim_Launch: #This label is called to set up the animation image and place it on the screen.
$ Speed = 0
show Horse_Animation:
zoom .55
xpos 475
ypos 120
with dissolve
return