How to make another object to appear after clicking on a button?

Hi everyone,

I have some very basic question. How to make interactions between 2 shapes? For example, I have one rectangular shape that will serve as a button that is containing correct answer. When someone clicks on the button with the correct answer, another shape should appear on the screen (smiley face). Im a school teacher and I have to make some interactive presentation for the kids. I know how to do it on MS Office, but Im not familiar with LibreOffice.

Thank you!

A simple approach is to go to Slide → Duplicate Slide. In the new slide, draw the smiley face.

Then back on the original slide, right-click on the rectangle and choose Interaction. Set Action at mouse click to “Go to page or object” and select the page containing the smiley face.

Otherwise, set the action to Run macro and then write a macro to set the smiley face to visible.

Yes, duplicating the slide works, but makes the presentation with a lot of slides. For every question I have to put 2 different slides for the answer - 1 for correct answer and 1 for wrong answer. And if I dont do that, I’ll have to switch manually every time to the slide with the next question. Sadly, there is no build-in function to simplify the process. I have no idea how to make macros. Thanks for the advice!