In this project I made a picture of a frog rotate, change size and make a noise depending on which button you click.
This is the first thing you see when opening up the application. “Ribbit” and “Croak” are the two buttons.
This is the “code” that made the buttons work.
This is the effect of button 1 titled “Ribbit”. As you can see, the frog on top flipped and shrunk. Both buttons also make a noise but I can’t necessarily depict that through pictures.
This is the effect of button 2 titled “Croak”. As you can see, the frog on top flipped again and grew back to 66% of it’s original size. The buttons can be spammed back and forth and it looks like the frog is jumping.
This is one thing I tried to do but it didn’t work the way I planned. I planned on giving the text to speech a french accent then lowering the pitch so the robot would make a deep-voiced “Ribbit” with a French accent but the sound the text to speech made was absolutely ridiculous. It was kind of funny though feel free to try it.