Consulting

Results 1 to 4 of 4

Thread: Make object appear after all other slide objects appeared

  1. #1

    Make object appear after all other slide objects appeared

    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?

  2. #2
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,158
    Location
    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
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved

    Excel 365, Version 2401, Build 17231.20084

  3. #3
    Moderator VBAX Master georgiboy's Avatar
    Joined
    Mar 2008
    Location
    Kent, England
    Posts
    1,158
    Location
    The attached may help
    Attached Files Attached Files
    Click here for a guide on how to add code tags
    Click here for a guide on how to mark a thread as solved

    Excel 365, Version 2401, Build 17231.20084

  4. #4
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    You can do this (probably) without any code at all.
    triggers3.pptx
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •