Perpetual reaction to click-trigger.

  • Thread starter Thread starter HiReception
  • Start date Start date
H

HiReception

Hi all,

I am working on a game for Microsoft Powerpoint, and I want to create a
button I can press, and for an X to show on screen when I click the button. I
also want this to stay on the presentation until the second-last slide, but
only if the button was pressed. Is this possible at all?
 
Unless you are going to write vba code you cannot use a trigger to make
objects appear on anything other than the current slide.

vba may also cause problems if the user has high security levels or uses the
viewer (where it won't work at all)

Without code the only solution I can see is to duplicate most of the slides
and add the "X", make these a custom show and hide them so they don't
normally show. Then make a click on the button go down this route and a
normal click on the slide go down the original slides route.

A bit clumsy and lots of slides but it can work. There's a simple demo here
http://www.pptalchemy.co.uk/NonLinear.ppt
--
john ATSIGN PPTAlchemy.co.uk

Free PPT Hints, Tips and Tutorials
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html
PPTLive Atlanta Oct 11-14 2009
 
Thanks for the reply! In this situation, your option to create new slides
wouldn't be feasible. I was hoping for 4 of these buttons, and theyere would
be 15 of each over 15 slides.

However, you say "Unless you are going to write vba code". What would I code
in this instance?
 
Thanks for the reply! In this situation, your option to create new slides
wouldn't be feasible. I was hoping for 4 of these buttons, and theyere would
be 15 of each over 15 slides.

However, you say "Unless you are going to write vba code". What would I code
in this instance?

You would code your button that brings the X into place. Here is the
problem. PowerPoint (as of version 2002) offers this great feature: trigger
animations. They allow you to click on an object to trigger the animation of
another object. This works very well if the two objects are on the same
slide. For example, you could click on a button and trigger another shape
(for example, a big X) to fly in. The problem is that trigger animations
only work on the current slide. The only thing that can impact other slides
is VBA. VBA can do something very similar to triggers, but it can do it for
any object on any slide. You have to assign a macro to the button, instead
of setting a trigger animations.

There are two ways to do this. You can adjust the .Visible property of a
shape. You can have this adjusted on each of the slides (that is, put your X
on each slide, and write a macro to make its .Visible = True). However, I
found that 2007 is not always cooperative with adjusting the .Visible
property. Instead, what I have been doing in 2007 is setting the .Top to
something like 3000 (off the viewable area of the slide) to make a shape
invisible and .Top to wherever you want it to make the shape visible. This
has worked consistently.

You can see a simple example of this (using the .Visible property) at my
site:

http://www.PowerfulPowerPoint.com/

You will want to look for Example 6.4 (click on "Examples by Chapter" and
"Chapter 6"). This example doesn't do exactly what you want to do, but it
uses all the same ideas. It also uses the .Visible property because I wrote
it before 2007.

--David
--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland
 
Back
Top