Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Theme on Thu 23/06/2005 20:22:24

Title: question on precessing clicks
Post by: Theme on Thu 23/06/2005 20:22:24
if i do something like

ProcessClick(x,y,eModeInteract);

and at x,y coordinates there is more than one object or an object and a hotspot and a character or something
what will be processed?

o/
Title: Re: question on precessing clicks
Post by: Ashen on Thu 23/06/2005 21:35:38
I think it's whichever is 'in front'. Generally (again, I think), a hotspot will be 'behind' everything else, so the object/character interaction would run. The order of objects and characters is determined by their baselines - whichever appears to be in front, that's the one that the interaction will run on.

If you wanted to specify which to trigger, you could use the Run(Character/Object/Hotspot)Interaction(number, mode) commands ((Character/Object/Hotspot).RunInteration(mode) in 2.7).