Difference between revisions of "Single Click Interface"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 14: Line 14:
  
 
Image:control_int_bs_000.png
 
Image:control_int_bs_000.png
 +
 +
</gallery>
 +
 +
 +
First off you need to open up the interface section & add a new interface, just call it something simple like "control_interface" as it makes it easier to find things quickly. Then you need to create a single button which we will be using for our left click (interaction) command. Name this something simple like "left_click". Now we need to set this as a "''command button''" inside of the ''button properties'' tab & then inside of the ''command properties'' tab: set the cursor as your default cursor. Next, set the ''command can be used on'' to "''objects and characters''" & tick the "''own character''" box if you want to be able to perform actions on your playable character. Finally set the ''command type'' as "''normal command''" & voila you have setup a single click command interface.
 +
 +
 +
<gallery>
 +
 
Image:control_int_bs_001.png
 
Image:control_int_bs_001.png
 
Image:control_int_bs_002.png
 
Image:control_int_bs_002.png
 +
 +
</gallery>
 +
 +
 +
In the next part (below) I will explain how to use the command interface in game.
 +
 +
 +
<gallery>
 +
 
Image:control_int_bs_003.png
 
Image:control_int_bs_003.png
 
Image:control_int_bs_004.png
 
Image:control_int_bs_004.png

Revision as of 21:02, 1 December 2013

Also known as the Broken Sword Interface.


On this page I am going to show you how to setup the most commonly used interface of modern 2D point & click adventure games.


First things first I would just like to quickly mention something about setting up your mouse cursors as this is something where quite a few people go wrong; well this & when to use the set cursor or set command action parts.


The important thing to remember about your mouse cursors is that you need to create both an active & an inactive cursor animation & the animation center needs to correctly setup for both. The animation center is what determines the current x,y position of your animation, regardless of whether it's your mouse cursor, an object, an item or a character. Where you set the animation center will vary depending on the cursor design but for example: if the mouse cursor icon is just of your typical arrow, then the animation center would usually be set to the tip (point) of the arrow.



First off you need to open up the interface section & add a new interface, just call it something simple like "control_interface" as it makes it easier to find things quickly. Then you need to create a single button which we will be using for our left click (interaction) command. Name this something simple like "left_click". Now we need to set this as a "command button" inside of the button properties tab & then inside of the command properties tab: set the cursor as your default cursor. Next, set the command can be used on to "objects and characters" & tick the "own character" box if you want to be able to perform actions on your playable character. Finally set the command type as "normal command" & voila you have setup a single click command interface.



In the next part (below) I will explain how to use the command interface in game.