PDA

View Full Version : Make object appear after all other slide objects appeared



ElleSmith
07-19-2022, 11:45 PM
Hi there. I'm making an interactive "I spy" PowerPoint game, and I was wondering if there's a way to use code or other trigger methods to make an action button appear after all the all the other objects in the slide have appeared via animation.

To clarify, the player has to find 3 objects in the picture and click on them, which triggers an "appear" animation. After the user has clicked on all the objects in the slide and they appeared (which is totally random, I can't know the order in advance), a final object will appear - a "next slide" button.

Can this be done somehow?

georgiboy
07-20-2022, 04:40 AM
Do you have an example that has been built already?

My thinking would be to add a number to a variable for each button clicked - when the variable gets to 3 you would know that all three objects had been selected. Logic would be something like the below:

Dim bClicked As Integer

If Button1clicked Then
bClicked = bClicked + 1
End If
If Button2clicked Then
bClicked = bClicked + 1
End If
If Button3clicked Then
bClicked = bClicked + 1
End If


If Button_clicked > 2 Then
' do something
Button_clicked = 0
End If

georgiboy
07-20-2022, 05:07 AM
The attached may help

John Wilson
07-20-2022, 08:17 AM
You can do this (probably) without any code at all.
29975