Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Breeta on Mon 23/06/2003 20:05:06

Title: What action changes one object to another?
Post by: Breeta on Mon 23/06/2003 20:05:06
Howdy,
I made two pictures of the door, closed and open, then I made them objects. I am not sure what actions to assign to the objects. I want the door to change from closed to half-open when you click on it. It can remain half-open for the rest of the game. Please help!
Thanks,
Bree
Title: Re:What action changes one object to another?
Post by: danny* on Mon 23/06/2003 20:09:42
object on/off...
Title: Re:What action changes one object to another?
Post by: Breeta on Mon 23/06/2003 20:24:12
Thanks but I never saw anywhere that said Object on/off...
But I did figure it out, in case anyone else cares what I did was assign these actions to object 0 (the closed door);
Interact Object-
 Object - Remove object from the room (object 0)
 Object - Switch object back on (object 1)
Also I made the open door pic object 1, and un-checked the box that said 'Object is intially visable'.
If you are going to reply to a question please be specific like this. Otherwise it is no help at all.
Peace,
Bree
Title: Re:What action changes one object to another?
Post by: Proskrito on Mon 23/06/2003 21:38:48
This is the question:
QuoteI am not sure what actions to assign to the objects
This is the answer:
Quoteobject on/off...

I think Danny replied correctly to your question, you didnt asked for the exact mouse moves and clicks in AGS editor, just the actions to assign, so if you want a more detailed answer, you should tell us in your post.
Title: Re:What action changes one object to another?
Post by: SSH on Tue 24/06/2003 12:38:53
By the way, since the number of objects are limited, it may be easier sometimes to chnage the picture of one object, rather than turn one off and turn another on.
Title: Re:What action changes one object to another?
Post by: Spyros on Tue 24/06/2003 19:55:43
Yes you can use the SetObjectGraphic command to change from open to close door, or you can use the AnimateObjectEx command to animate the opening and the closing of the door.