On Tue, 15 Jan 2008 09:19:49 +0100
"Andreas Mank" <[EMAIL PROTECTED]> wrote:

> ***********************
> This message has been scanned by RTT AG TrendMicro Interscan Security
> System and found to be free of known security risks.
> ***********************
> 
> 
> Hello,
> 
> how can i remove an object from a room?  After calling pickupobject
> the objet is still lookable and the hotspot is still set ..

pickupObject() is not exactly working as one would expect. First
remeber how objects works: in state 0 nothing is displayed, in any
state > 0 the corresponding image is displayed. If the object is
found by getObjectAt() depend if it belong to the ClassUntouchable or
not.

What pickupObject() do is to set the new owner, set the object
untouchable and turn it to state 1. This mean that the visible object
must be drawn on the room background and the image for state 1 must
"hide" it.

        Albeu

BTW Gerrit, looking at the setObjectClass() implementation in scummvm
it should is usable with actors too. Like getObjectAt(), getActorAt()
look at the untouchable class,  so you should just need to set the class
to make an actor "unselectable".


_______________________________________________
ScummC-general mailing list
[email protected]
https://mail.gna.org/listinfo/scummc-general

Reply via email to