So the general idea is to slide 3 different images to right side until one of them reaches the end(like xalign1 to xalign0 which means in monitor range). After the first one reached the end, an event will trigger and show an additional screen while pausing the working trasnform. Because after the screen the transform will continue. (which means all of them will keep their last location and the finiher will start transform again from the beginnig.)
My goal is to make a turn based fight system. While the first finisher will get the first round and if he has the speed, he could even take second turn before others i hope you got what i mean
I figured out the transform part but couldnt add event and stop or pause the other transform when someone reached at the end.
Code: Select all
transform speedrace(c,t=r_speed):
zoom 0.1
linear t xoffset 50
xoffset -50
repeat
screen turn_select():
style_prefix "confirm"
frame:
yalign 0.1
has vbox:
for p in battle_players:
if not p.turn and p.hp > 0:
if currentplayer == None:
add "chr_design/player.png" at speedrace(p,p.speed)
It looks pretty much like that. Just when someone reach at the end all of the racers will stop and an additional screen will be shown. after that screen returned, the transform will be continue I hope it is possible.