Hello,
I was wondering if there's any way to make a verb-coin (ags template) appear faster?
Right now you need to hold left mouse button for half a second before the verb coin will appear. However, I'd like to speed up the gameplay a bit.
Thank you in advance.
(Not tested.)
I've checked the template codes, I think it's around this part of Scumm VerbCoin GUI.asc:
...
if (Mouse.Mode != eModeUseinv && process == false){
if (Mouse.IsButtonDown(eMouseLeft) == 1) timer++;
/*LONG CLICK*/
if (timer >= 15) {
if (GetLocationType(mouse.x, mouse.y) != eLocationNothing || item != null){
...
Change the 15 in the line 'if (timer >= 15) {' (it's line 658 for the template in V3.12) to a smaller value (it means it will wait for 15 game loops for the Coin to pop up, which is 15/40=0.375s at the default engine setting of 40 FPS).
Ideally I think that wait value should be changed to a variable, that you can change via a function of the module to suit one's need.
This works, thank you!
Quote from: Iceboty V7000a on Fri 18/02/2011 10:29:26Ideally I think that wait value should be changed to a variable, that you can change via a function of the module to suit one's need.
Which is why in the module/template that I just wrote you can simply use Verbcoin.Delay to control this. :=
[/shameless plug]
One more question. I'm using resolution 1024x768 and it seems this causes problems with inventory and verb coin. I didn't edit anything so far (didn't change graphics, objects, etc.- it's all default). But as I open the inventory, inventory objects don't fit in inventory.. they just continue further, outside the inventory box. The same problem is with verb coin- it looks like the hot spots aren't align with hand/eye/mouth icons. For example: I need to slide the mouse outside the verbcoin to activate mouth icon.
I did turn "use low resolution co-ordinates in script" option to "false", but it didn't help.
I'm using the latest beta AGS 3.2.1.108