Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 05/11/2003 08:01:24

Title: hotspot under an object cannot be looked at?
Post by: on Wed 05/11/2003 08:01:24
A hotspot under an object cannot be looked at?

Basically, i have a door which is an object .. there's two hotspots UNDER the door that trigger messages for the player.. with the door on top of the hotspots.. no triggering :(

CarDash
Title: Re:Funny..
Post by: on Wed 05/11/2003 08:41:51
that's true. i run into that too because i had a hotspot the player could interact with, thus setting an object to ON. once an object sits atop a hotspot it is the only thing reacting on mouse clicks. i found that convinient, but if you're need to get the hotspots responses you should try to change the room graphic instead of making an object- like, drawing the room with an open and a closed door and then switch the room pic. that works, but i forgot the function name, sorry.
Title: Re:Funny..
Post by: Gilbert on Wed 05/11/2003 09:02:26
If that object has no mouse click interaction, just put in the "player enters room for the first time" event function of that room the following line of script:

SetObjectClickable(2,0);

which would make object, say, #2 in that room to ignore mouse clicks, check out the manual for SetObjectClickable() to learn more of this function.
Title: Re:Funny..
Post by: on Wed 05/11/2003 09:22:41
That did the trick!

Thanks!

CarDash
Title: Re:hotspot under an object cannot be looked at?
Post by: Ishmael on Wed 05/11/2003 20:48:37
And if you never again need to anyhow use the hotspot in the game, like close it, you can use

MargeObject(x);

Where you put the object number in the place of x. This merges the object graphic to be part of the background, so for not causing slowdown like objects do on some machines.