Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2012, 12:43 PM
miiitchhh miiitchhh is offline Create "Roll dice" simulation? (random number gen object?)) Windows 7 32bit Create "Roll dice" simulation? (random number gen object?)) Office 2010 32bit
Novice
Create "Roll dice" simulation? (random number gen object?))
 
Join Date: Oct 2012
Posts: 1
miiitchhh is on a distinguished road
Default Create "Roll dice" simulation? (random number gen object?))

Im very new to powerpoint, but not to computer programs in general. What im doing is creating a board game in powerpoint in which each slide moves the game piece 1 space.



Anyways, im trying to figure out how to make a simulation of a 'dice roll'. Im very capable of making a graphic in photoshop but i need to know how to set up a system in PP.

Is there perhaps a way to make a script type object that 'randomly chooses 1 of 6 graphics'.

Ill make a graphic for each roll of of the die, and 1-6 are the only possible outcomes. so when i push the roll button itll choose at random 1 of the 6 images?

or any other solutions you can think of to achieve the same outcome?
Reply With Quote
  #2  
Old 10-14-2012, 01:12 PM
JohnWilson JohnWilson is offline Create "Roll dice" simulation? (random number gen object?)) Windows 7 64bit Create "Roll dice" simulation? (random number gen object?)) Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

You can do this by creating 6 slides each with a different die animation and a further slide with a button to run a macro. The six die slides should have on click transition OFF and a button to get back to the first slide.

Assuming the die slides are # 2 - 7

Sub chooseMe()
Dim choice As Integer
Randomize
choice = (Rnd * 6) + 1
SlideShowWindows(1).View.GotoSlide (choice + 1), msoTrue
End Sub

If you don't know how to use a macro see here
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create "Roll dice" simulation? (random number gen object?)) Any "InsertRowsBelow" in Tables Object? tinfanide Word VBA 2 06-11-2012 04:41 AM
Create "Roll dice" simulation? (random number gen object?)) Mailing: how to make the "page number" in Word is the same as "row number" in excel w Jamal NUMAN Word 1 09-03-2011 11:37 AM
Create "Roll dice" simulation? (random number gen object?)) How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Tricky "random word" Question!! seba1685 PowerPoint 0 04-21-2011 12:17 AM
in WORD, how do i type a 9-digit phone number "xxxxxxxxx" and have it automatically.. jay8962 Word 0 04-08-2010 11:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft