Page 1 of 1

Problems Resetting Sprite Position

Posted: Tue Jun 29, 2021 2:32 am
by quinnsea
Hey! I'm experimenting a little bit with ATL, and I managed to get my sprite to hop perfectly, but for some reason (for lack of a better word) they seem to keep getting lost? Like here they are before the ATL movement using

Code: Select all

show sprite at left
Image

And here they are after executing these lines:

Code: Select all

    show kamal closedsmile
    
    k "Jackie?"
    z "I jump up and instantly pick them up right into a big ass hug."
    
    hide prism with moveoutright
    show kamal blushlookright at center, kamalhopfocus
    with moveinleft
    
    k "H-Hey!{w=0.3} Happy to see you too,{w=0.3} {i}but I can't breathe!{/i}"
    j "Hah!{w=0.5} Aight,{w=0.3} aight."
    
    show kamal neutral at left with moveinright
    show prism smile at right, prismTransform with moveinright
Image

And here is the code for the ATL movement (kamalhopfocus)!

Code: Select all

transform kamalhopfocus(x=100, z=1):
    xcenter x yoffset 0 yanchor 1.0 ypos 1.03 zoom z*1.00 alpha 1.00 subpixel True
    easein .5 yoffset -21
    easeout .5 yoffset 0
    repeat
I had to make x=100 because otherwise despite the fact that I put center, it didn't seem to be interested in putting Kamal in the center of the screen. I tried to use

Code: Select all

show sprite at reset, center
and that didn't seem to do anything either.

Thanks in advance for the help!