from the project menu list left of screen
select the "VBS variables" option and add three new integrer variables
half_moon
quarter_moon
quarter_moon2
then create a large hotspot (on the blank frame you have made) and set the picture to combine.jpg
(see attached image)
then create a smaller hotspot to place on the right hand solo square "hole"
this will be Hotspot 2
set it's picture in hotspot properties to full_moon.jpg (see attached image)
(and select resize to fit)
this will be the item you recieve when you have combined the other 3 items...
set the action property of this hotspot to
hide and disable pernamently
(and you can add a message if you want to inform the player what the new item is)
from the hotspot item section select "when the hotspot is clicked add a new item.."
click the NEW tab and type full_moon
then it will ask you to choose an icon file for the item...browse the window to find the icons i have provided or just use your own to save time..
(i've attached the icons for this example in a zip file)
then go to the hotspot variables section
and select
"the hotspot must be enabled only if"
then
"the value of the following variable is 1"
and add the
half_moon
quarter_moon
quarter_moon2
variables to this list
this will mean that you will only see this hotspot when you have placed the three inventory items in the correct square "Hole" (hotspot) on the screen
then click on the manage items option on the AM frame editor menu
select
"create new item"
and type
half_moon
browse to find the icon file as before..
then create another new item
type
quarter_moon
etc
now click and hold you mouse on each of the item names listed in the manage items pop up window..and you will notice that the icon will appear as your mouse cursor...ok
now back to hotspots again...
create 3 new hotspots and place then on top of the left hand side square "holes" (no options needed for these hotspots )
hotspot 3 at the top, then hotspot 4 and 5 going down the screen..
these will recieve the inventory item you will be combining to get that full moon item later
click the manage inventory items option again
click and hold you mouse on the half_moon item when the cursor changes to the icon drag this onto the topmost of the three hotspots you have just created..ie onto the topmost of the left hand side three square "holes"
a hotspot properties window will pop up
select the variables section..
and select the
"change the value of one or more variables" option
then
"variables the value of which must become 1"
and add
half_moon
then go to the advanced section of the hotspot properties
select the "on item drag and drop..."option
(you perhaps see where this is going)
and add this code to the window
- Code: Select all
Action.LoadAPicture Hotspot(3), "half_moon.jpg"
Action.RemoveItem "Half_Moon"
(i have attached the half moon image here)
click ok
then drag the quarter_moon item onto hotspot 4
another hotspot properties window will appear
select the variables section..
and select the
"change the value of one or more variables" option
then
"variables the value of which must become 1"
and add
quarter_moon
then go to the advanced section of the hotspot properties
select the "on item drag and drop..."option
(you perhaps see where this is going)
and add this code to the window
- Code: Select all
Action.LoadAPicture Hotspot(4), "quarter_moon.jpg"
Action.RemoveItem "quarter_Moon"
(i have attached the quarter moon image here)
click ok
then also drag the quarter moon item onto hotspot 5
the lower of the three square "holes"
(you will have two quarter moon items)
select the variables section..
and select the
"change the value of one or more variables" option
then
"variables the value of which must become 1"
and add
quarter_moon2
then go to the advanced section of the hotspot properties
select the "on item drag and drop..."option
(you perhaps see where this is going)
and add this code to the window
- Code: Select all
Action.LoadAPicture Hotspot(5), "quarter_moon.jpg"
Action.RemoveItem "quarter_Moon"
(i have attached the quarter moon image here)
click ok
almost done...
go to the frame editor and open the frame properties
adavanced setion and select the
"execute VBS code ..." option
put this into the window
- Code: Select all
Action.AddItem "Half_Moon"
Action.AddItem "Quarter_Moon"
Action.AddItem "Quarter_Moon"
this is to give you the three items needed to use in the example..
hope this is ok..
place them in the three square holes on the left and the new full moon item appears in the hole to the right..click on it and you get the full moon item