ATL Transform Not Working Sometimes with LiveComposite
Posted: Tue Nov 16, 2021 10:05 pm
Hi there, im running into a strange issue using ATL Transform with LiveComposite or rather how its called now Composite. Basically all my sprites i do using LiveComposite and it works just fine but sometimes when i try and do an ATL transform on the sprite it either works, doesn't do it at all or it completely displays the sprite on only the left side of the screen.
For example take this sprite, the screen size is 1280x720, the sprite images for Composite is 404x720 and the Composite code is as follows:
and in the script i used her like this:
where movetocenter and moveleft are defined like this:
and this worked however when i did the same thing with another sprite resized the images so its not 1280x720 and defined the following transform:
and then called her like this instead of appearing on the right side of the screen she appeared on the left side and no matter what i did the furthest to the right she would go is to the center:
so idk what's going on did i define something wrong, is it glitching because of the Composite?
For example take this sprite, the screen size is 1280x720, the sprite images for Composite is 404x720 and the Composite code is as follows:
Code: Select all
image Yumi1 = LiveComposite(
(1280, 720),
(0, 0), "/images/Sprites/Yumi/Yumi1Body.png",
(0, 0), "/images/Sprites/Yumi/Yumi1Head.png",
(0, 0), "/images/Sprites/Yumi/Yumi1Eyebrows.png",
(0, 0), "/images/Sprites/Yumi/Yumi1EyesOpen.png",
(0, 0), "/images/Sprites/Yumi/Yumi1Mouth.png",
(0, 0), "Yumi 1 blink"
)
image Yumi 1 blink:
choice:
3.5
choice:
4.5
choice:
5.5
"/images/Sprites/Yumi/Yumi1EyesOpen.png"
.05
"/images/Sprites/Yumi/Yumi1EyesHalf.png"
.08
"/images/Sprites/Yumi/Yumi1EyesClosed.png"
.018
"/images/Sprites/Yumi/Yumi1EyesHalf.png"
.01
"/images/Sprites/Yumi/Yumi1EyesOpen.png"
1
repeatCode: Select all
show Yumi3:
xalign 0.2
movetocenter
moveleft
with dissolveCode: Select all
transform moveleft:
linear 0.5 xpos 0.2
transform movetocenter:
linear 0.5 xpos 0.5Code: Select all
transform moveinnerright:
linear 0.5 xpos 0.7Code: Select all
show Maya3:
xalign 0.8
moveinnerright
with dissolve