Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Andail on Tue 20/05/2003 15:42:16

Title: weird mouse click problems
Post by: Andail on Tue 20/05/2003 15:42:16
Problem # 1:
Whenever I use a hotspot with an "any click"-interaction,
it only reacts to right-clicks.
I have fiddled alot with the on_click functions, so not much is left of the original settings. Left-click is assigned to walk to, right click look at.

Problem # 2:
Whenever the character uses an inventory item on something, after the script "releases" her, she instantly walks to a seemingly arbitrary location in the room. If I have a movecharacterblocking, the moment that function is over, she takes some steps away in another direction.

Any ideas?
Title: Re:weird mouse click problems
Post by: Scorpiorus on Tue 20/05/2003 20:56:56
QuoteProblem # 1:
Whenever I use a hotspot with an "any click"-interaction,
it only reacts to right-clicks.
I have fiddled alot with the on_click functions, so not much is left of the original settings. Left-click is assigned to walk to, right click look at.
Hmm, seems it's because you assigned left-click as walk to. Hotspot anyclick event never occurs in case you use the walk mode.


QuoteProblem # 2:
Whenever the character uses an inventory item on something, after the script "releases" her, she instantly walks to a seemingly arbitrary location in the room. If I have a movecharacterblocking, the moment that function is over, she takes some steps away in another direction.
?Probably MoveCharacter() is triggered somehow? Maybe because you use left click both as walk and as use inventory. ::)


-Cheers
Title: Re:weird mouse click problems
Post by: Andail on Fri 23/05/2003 16:55:55
yeah, thanks Scorpius, that was pretty much it...
the weird thing was that the "walk to" was triggered all randomly...not precisely where I had clicked.
It is taken care of now anyway.