Overlay not moving at the right time

I’m currently just trying to add some choices into the first three episodes of my R&R entry and I can’t honestly say it’s going to well because I struggle with changing stuff up for the choices :sleepy:
For this particular choice I’m trying to make it look like someone is picking up a sandwich but the overlay of the sandwich won’t move at the right time so it ends up either slightly before or after the hand so if anyone could help me figure out the problem in my script it would be greatly appreciated :dove:

@FALLON walks to spot 0.515 150 335 in zone 2 AND FALLON is run_athletic_neutral_loop

@FALLON is tinker_stand_neutral_loop_rear AND FALLON faces right AND zoom on 550 312 to 159% in 2

    FALLON
(What food should I make quick?.)

choice (food)
“Tomato, lettuce and ham sandwich” {

gain TLMHS
@overlay TOMATO LETTUCE HAM SANDWICH create
@overlay TOMATO LETTUCE HAM SANDWICH shifts to 102 283 in zone 2
@overlay TOMATO LETTUCE HAM SANDWICH to layer -1
@overlay TOMATO LETTUCE HAM SANDWICH scales to 0.082 0.082
@overlay TOMATO LETTUCE HAM SANDWICH opacity 1 in 0

} “Turkey and marshmallow fluff sandwich” {

gain TMFS
@overlay TURKEY MARSHMALLOW FLUFF SANDWICH create
@overlay TURKEY MARSHMALLOW FLUFF SANDWICH shifts to 102 283 in zone 2
@overlay TURKEY MARSHMALLOW FLUFF SANDWICH to layer -1
@overlay TURKEY MARSHMALLOW FLUFF SANDWICH scales to 0.082 0.082
@overlay TURKEY MARSHMALLOW FLUFF SANDWICH opacity 1 in 0

} “Peanut butter and jelly sandwich” {

gain PBJS
@overlay PEANUT BUTTER JAM SANDWICH create
@overlay PEANUT BUTTER JAM SANDWICH shifts to 102 283 in zone 2
@overlay PEANUT BUTTER JAM SANDWICH to layer -1
@overlay PEANUT BUTTER JAM SANDWICH scales to 0.082 0.082
@overlay PEANUT BUTTER JAM SANDWICH opacity 1 in 0

}

@add Gun Pistol Black to PAULO
&PAULO spot 0.578 208 323 in zone 3 at layer 4

@PAULO walks to spot 0.578 237 323 in zone 2 AND PAULO is run_athletic_neutral_loop THEN PAULO is idle_gun_angry_loop

@FALLON faces right AND FALLON is talk_repulsed

@PAULO is dustoff_neutral_loop
@remove Gun Pistol Black from PAULO
@PAULO is dustoff_neutral_loop AND speechbubble is 150 242 to 100% with tail_top_right

    PAULO (talk_exhausted)
Fallon what are you doing?

@speechbubble is 150 242 to 100% with tail_top_left

    FALLON (talk_flashlight_scared)
I'm late for school.

@speechbubble is 150 242 to 100% with tail_top_right

    PAULO (talk_exhausted)
It's four in the morning.

@speechbubble is 150 242 to 100% with tail_top_left

    FALLON (talk_angry)
Goddamn Shane.

@FALLON walks to spot 0.515 150 335 in zone 3 AND FALLON is walk_angry_loop AND speechbubble is 150 242 to 100% with tail_top_right

    FALLON
SHANE I WILL COME AND STAB YOU IN YOUR SLEEP!

@PAULO walks to spot 0.578 170 325 in zone 2 AND PAULO is walk_sneak_loop THEN PAULO starts take_object_neutral

@pause for a beat

@zoom on 429 313 to 1042% in 0 AND PAULO spot 0.578 184 350 in zone 2 AND PAULO is take_object_neutral

if (TLHS) {

&overlay TOMATO LETTUCE HAM SANDWICH shifts to 137 288 in zone 2 in 1

} elif (TMFS) {

&overlay TURKEY MARSHMALLOW FLUFF SANDWICH shifts to 137 288 in zone 2 in 1

} elif (PBJS) {

&overlay PEANUT BUTTER JAM SANDWICH shifts to 137 288 in zone 2 in 1

}

Can you use a sandwich prop? So have the sandwich on the table, remove the overlay, and the replace it with the prop when she/he/they picks it up. That way, you wouldn’t have to make it move

3 Likes

you should try putting & instead of @ in front of overlay commands

1 Like

I tried it and it looks good other than that the overlay won’t seem to disappear at the right time because I’m trying to get it to happen halfway through an animation

1 Like

Oh, okay.

You just gotta time it with a pause then remove the overlay. Try something like this:

if (TLHS) {
&pause for 0.5 THEN overlay TOMATO LETTUCE HAM SANDWICH clear
} elif (TMFS) {
&pause for 0.5 THENoverlay TURKEY MARSHMALLOW FLUFF SANDWICH clear
} elif (PBJS) {
&pause for 0.5 THENoverlay PEANUT BUTTER JAM SANDWICH clear
}

&zoom on 429 313 to 1042% in 0 AND PAULO spot 0.578 184 350 in zone 2 AND PAULO is take_object_neutral
@pause for 0.5

if (TLHS) {
@add Sandwich Tomato Lettuce Ham to PAULO
} elif (TMFS) {
@add Marshmallow Turkey Fluff Sandwich Bread Brown to PAULO
} elif (PBJS) {
@add Peanut Butter Jelly Sandwich Bread Brown to PAULO
}

Change and play around with the pauses to your liking

1 Like

Ahh thank you! I changed the timing to 3 and it worked perfectly :heartbeat:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.