hotspot under an object cannot be looked at?

Started by CarDash, Wed 05/11/2003 08:01:24

Previous topic - Next topic

CarDash

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

Ghost

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.

Gilbert

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.

CarDash

That did the trick!

Thanks!

CarDash

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk