Skip to content
Forum Archive

Flip image

10 posts

macaroon#

Flip image

Is it possible to flip the entire avs image horizontally after a random amount of time? If so how can this be done?- And, no, mirror isn't what I am after.

Thank you.
Tuggummi#
In movement:

x=-x (to flip it horizontally)

y=-y (to flip it vertically)



With a dynamic movement:

For a flip at every N beat you can do...

Init
flip=1 ; beatlimit=10

Beat
counter= if( above(counter,beatlimit), 0 , counter+1 ) ;
flip= if( equal(counter,0), -flip , flip ) ;

frame
x=x*flip (for horizontal flip)

or

y=y*flip (for vertical flip)



That simple 🙂
anubis2003#
And if, instead of after a certain number of beats you want it to go after a certain amount of time(for whatever reason) then instead of increasing the counter and setting the flip variable in the ON BEAT section, you could set it in the ON FRAME section, so that you could specify the number of frames instead of the number of beats.
macaroon#
Thanks for the info!
I managed to get the "static" flipping working, but not the dynamic



(see piccy) What am I doing wrong/left out/forgotton etc? I've never messed around with variables and the like in the AVS....Until now.