acces areas behind objects?

Started by Rocco, Mon 19/04/2004 20:59:43

Previous topic - Next topic

Rocco

problem is: how can i acces an area which is under an object?
for example i have an closed door, with interact i can open it and restore a walkable area,
i can script it in one rush to go trough and in the next room, but  i dont want this.
The problem is, when the open door is an overlaying object, i cant acces the walkable area behind.
The opposite with an open door in background and a closed one as object is also not satisfying,
cause i have a 2 sheets on the door, so i have 3 hotspots on the door - is it possible to set hotspots on an object?

stuh505

well im not exaclty sure what you're trying to do...but it sounds like you could use the same hotspot to open the door as to travel through the door by scripting a conditional statement that either opens the door if it hasn't already or loads a new room if the door has already been opened, i'd bet my pants you can't add hotspots to objects.  another option is you could make the room load from a region when you walk onto it but only if the door is open.

strazer

I do the door thing this way:

I draw the background with the doorway only, no door:


The door itself is an object that is visible right from the start:


To open and close the door, I set up a view containing the door animation and call AnimateObjectEx:
1 2 3

This way the only thing clickable is the door.

Rocco

@strazer: that dont works for me, cause i have renderbackgrounds, and if i remove the door complete i get wrong shadows.

@stuh505 how can an if statment look for an hotspot.
the idea with the region, is the same as with the walkable area i cannot reach it behind the object.

Ashen

 You said "that dont works for me, cause i have renderbackgrounds, and if i remove the door complete i get wrong shadows."

How have you done it, then? Could you maybe post a screenshot to show how you've set it up?

Rocco

For this time i make it the easy way and let the player pass the door, same time he opens it, cause i run out of time for the mags contest.

SMF spam blocked by CleanTalk