click hotspot behind an object?

Started by spook1, Fri 19/03/2004 19:33:47

Previous topic - Next topic

spook1

Once I have placed an object over a hotspot, I cannot reach the hotspot anymore.

is there a solution for this, or do I have to work my way around using GetLocation(.... etc.

Sorry for being silly, but I plan to ask everything only once ;-)

martijn

Ben

Have you tried this as an interaction for the object? :

ObjectOff(1);
ProcessClick (mouse.x, mouse.y, MODE_USE)
ObjectOn(1);

I don't know if that will work, but it should..

spook1

Well, I would need to turn off the object before I click the hotspot.
And I want to reach the hotspot itself.
This way I have to turn the object on and off every gamecycle to see if the hotspot was clicked. is that what you mean?
I could test it...

Scummbuddy

Can you give us a more descriptive idea about whats going on in the scene? Does the object take over the whole hotspot?
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

spook1

Quote from: Scummbuddy on Fri 19/03/2004 21:45:48
Can you give us a more descriptive idea about whats going on in the scene? Does the object take over the whole hotspot?
\

Yes,


I have created a somewhat crappy script.
I have defined a number of hotspots, coreresponding to electric circuit elements.

To place an element on a hotspot I interact with hotspot and this turns on the object on the hotspot. To remove the element I cannot see the hotspot anymore. For my script it is easiest to use the hotspotnumber again to unselect the object.
Now I have to rewrite the bunch to do an interaction with objects in the "way back".

Maybe a rescript of the whole thing is the best option :-(

Radiant

There is a function GetHotspotAt (x,y).
That should do it.

spook1

Trying that now. I cannot use "interact with hotspot" as event handler though....

SSH

You'll need to use it in the on_mouse_click function: check if there's a hotspot then run the hotspot interaction instead of the object interaction...
12

SMF spam blocked by CleanTalk