Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SN1984jm on Fri 20/05/2011 18:15:23

Title: Make object be ignored by cursor
Post by: SN1984jm on Fri 20/05/2011 18:15:23
Is it possible to make an object completely non-existent as far as the cursor is concerned? I have a script which shows stuff like "walk to" and "look at" and I made it so that it shows nothing when there is nothing of interest under the cursor. So far this "nothing of interest" was covered by "GetLocationType(mouse.x,mouse.y) == eLocationNothing". But now I have an object moving around on the screen which should also be ignored. You can for example set this property on a character (Clickable = false). Is there a similar option for objects?
Title: Re: Make object be ignored by cursor
Post by: Ryan Timothy B on Fri 20/05/2011 18:42:38
Look up:
Object.Clickable

If you knew of the Character.Clickable, why didn't you try Object.Clickable? The moment you type the period after the object, the auto complete has a list of available pointer functions for that type.

Or you could look in the manual for: Object functions and properties
Which shows all available pointer functions with descriptions to boot. Each type has their own functions and properties section in the manual.
Title: Re: Make object be ignored by cursor
Post by: TomatoesInTheHead on Fri 20/05/2011 18:49:23
Quote from: Ryan Timothy on Fri 20/05/2011 18:42:38
If you knew of the Character.Clickable, why didn't you try Object.Clickable?
Probably because in the editor, the Clickable property is only available for characters, not for objects. This is indeed a bit inconsistent and allows for misleading logical deductions.
Title: Re: Make object be ignored by cursor
Post by: Ryan Timothy B on Fri 20/05/2011 19:04:06
What are you talking about Tomatoes?

http://www.adventuregamestudio.co.uk/manual/Object.Clickable.htm
Title: Re: Make object be ignored by cursor
Post by: Khris on Fri 20/05/2011 19:21:27
For characters, the Clickable property is listed in the property list under the project tree, not for objects though, you have to set it in script.
Title: Re: Make object be ignored by cursor
Post by: SN1984jm on Fri 20/05/2011 21:48:22
Quote from: Ryan Timothy on Fri 20/05/2011 18:42:38
If you knew of the Character.Clickable, why didn't you try Object.Clickable? The moment you type the period after the object, the auto complete has a list of available pointer functions for that type.

I honestly don't know why I hadn't tried that, I really believed I had. Maybe it's so trivial that I automatically assumed I already tried it :p.

Well, thanks anyway.