Results 1 to 3 of 3

Thread: more powerpoint help

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    Australia
    Posts
    12

    more powerpoint help

    I originally posted this in my first thread, but no one read it, so i'm posting it here instead. But before I ask the question, I shall elaborate.

    I'm making a game in Powerpoint. It's a complex game, where you get to move around through mazes and seas. You therefore need to be able to move to every single "square" or grid location not taken up by a "rock", aka wall. In some parts of the game, you need to go around collecting things, and once you have, I would like it so that the image of the thing that you pick up turns invisible for all slides in a set duration of slides, or a map. I was wondering if this is possible, and if so, how?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    If the "Thing" you pick up wa a picture inside of a picturebox control on the top of a slide, or on a form, then you could take a look at the API calls TransparentBlt or GdiTransparentBlt to set the background outline of this thing transparent.

    Alternatively, you could re-paint the image of the square that this item/thing is found on - i.e. if the floor was black & there's a n item which you pick up off it, the square this image was on should then be turned black.

    To do this for a square in every powerpoint slide, you can perform a loop similar to this:
    VB Code:
    1. Dim intSlideCounter as integer
    2.  
    3. For intSlideCounter  = 1 to ActivePresentation.Slides.Count
    4.     ' Code Here
    5. Next intSlideCounter

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    Australia
    Posts
    12
    Then how do I change the image? And couldn't I just change it to a transparent bitmap the same size as the item?

Posting Permissions

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



Click Here to Expand Forum to Full Width