Attached are a couple of programs explaining how to use and create regions on a Picturebox and turn them into custom shaped hot zones that the user can click and Navigate to other images. This would be useful in a Myst-Style game.
Included are 2 Project Files and 1 graphics file, unzip to the same directory.
Region Click
This programs shows you how to implement the regions that are loaded dynamically with the pictures. Regions are stored in "rgn" file. When the hot zones are clicked they invert and load a target image. The new target image comes with it's own set of hot zones.
Region Maker
This program is used to create multiple regions on a picture the store then in an "rgn" file. Edit Existing Rgn Files by loading the associated image.
- Click on the lower listbox to select the target image for the region you are about to create.
- Click on the image to create the points of the polygon region. Right clicking at the last point closes the region and stores the region info in the text box.
- Click the save button when all regions for the current image are created. A rgn file is created with the same name as the image.
Run the Region Click program first to get see the Demo. You'll navigate through a 3D house and solve:
The Mystery of the Lost Car Keys
.
Post Edited: Region Maker was updated 0n 7/26/2009
Region maker Utility: