Creating a Coin Interface


Image : "MonkeyIsland 3" © LucasArts

To create a Coinmenu (or Popupmenu) you will need another room. In the middle of this room you have to place some objects that represent the buttons for the gamecommands the player can use. These buttonobjects will get the same scripts as buttons in a taskbar :

on (click)
  command (gamecommand)

The difference between a coinmenu and a taskbar is that the player will first select an object and then a gamecommand to interact with it. Everything else works the same.

In the Projectsetup you have to enter the room name that holds the coinmenu and you can adjust the middlepoint of the menu. This is the reason why you should place your objects into the middle of the room.

If you do not want your coinmenu to popup automaticly by clicking the right mousebutton you have to call the menu manually :

on (rightclick)
 popupcoin ()

A coinmenu cannot hold an inventoryfield You should use a subroom for that instead and a button within the Anywhere-Room.