Script on making the godlfish go back and forth

I want this fish to keep swimming right then left.

This is the script:

Script

INT. GRANDMAS HOUSE BEDROOM - NIGHT with AQUARIUM with GOLDFISH
&cut to zone 3

&overlay 4972643041673216_AQUARIUM shifts to 42 260 in zone 3
&overlay 4972643041673216_AQUARIUM scales to 0.748 0.748
&overlay 4972643041673216_AQUARIUM moves to layer 2
&overlay 4972643041673216_GOLDFISH shifts to 52 286 in zone 3
&overlay 4972643041673216_GOLDFISH scales to 0.172 0.172
&overlay 4972643041673216_GOLDFISH moves to layer 1

&overlay 4972643041673216_GOLDFISH shifts to 185 287 in zone 3 in 14

&overlay 4972643041673216_GOLDFISH scales to -0.170 -0.170
&overlay 4972643041673216_GOLDFISH shifts to 258 334 in zone 3 in 14

&overlay 4972643041673216_GOLDFISH scales to 0.172 0.172
&overlay 4972643041673216_GOLDFISH shifts to 185 287 in zone 3 in 14

It’s not working as I like. The fish stops moving at the first coding script to move in 14. The aquarium is fine., it’s just the fish. I want the fish to keep swimming to the right then to the left (like a loop)


aquarium
The overlays (it might have turned to jepg)

1 Like

I think it’s best if you use two mirrored overlays instead and adjust their opacities so one of them is visible when swimming left and the other isn’t and vice versa.
I’ve heard quite some time ago that when you invert the scaling with a minus to mirror the overlay, you can no longer shift it afterwards, but I’ve never actually tried it myself.

You have “&” command for all of them which means it’s trying to do all of those at the same time, resulting in it being stationary.
Try changing this:

To this:
&overlay 4972643041673216_GOLDFISH scales to -0.170 -0.710 in 0 THEN overlay 4972643041673216_GOLDFISH shifts to 258 334 in zone 3 in 14 THEN overlay 4972643041673216_GOLDFISH scales to 0.172 0.172 in 0 THEN overlay 4972643041673216_GOLDFISH shifts to 185 287 in zone 3 in 14 loop infinite times

As I said before, this may not work because of the inverted scaling followed by shifting, but if it were without the inversion, this code might work - the fish just wouldn’t face opposing directions.
If that code doesn’t work, I strongly suggest uploading a second overlay (previously mentioned) that’s been mirrored and using two overlays for the scene.

2 Likes

it says:


But I will try your other idea, thanks.

I’ve adjusted it so you could try it again, but I’m still not sure it would work with minus scaling. :hear_no_evil:

1 Like

yea it didn’t. thanks though

1 Like

if you want the fish to swim in an endless loop while something else is happening on the scene you will need to make a looping command.

I haven’t tested it so i am sorry if I made a typo - basically, you need 2 separate loops one for the scale and one for the shift…because the shift happens in time and the scale immediately I added the same command for scale after in time to create a pause for the time set fish moves to the other side.

&overlay GOLDFISH scales to 0.172 0.172 in 0 THEN overlay GOLDFISH scales to 0.172 0.172 in 14 THEN overlay GOLDFISH scales to -0.170 -0.170 in 0 THEN overlay GOLDFISH scales to -0.170 -0.170 in 14 loop infinite times

&overlay GOLDFISH shifts to 185 287 in zone 3 in 14 THEN overlay GOLDFISH shifts to 185 287 in zone 3 in THEN overlay GOLDFISH shifts to 258 334 in zone 3 in 14 THEN overlay 4972643041673216_GOLDFISH shifts to 258 334 in zone 3 in 0 loop infinite times

1 Like

thank you, I’ll try this

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