Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 23/05/2004 23:08:29

Title: ObjectOff Error Message
Post by: on Sun 23/05/2004 23:08:29
Ok, here's the situation.  I have my background for the first room.  I have a bed in the background, the bed is a hotspot.  I have an object on the bed.  I have an interaction for removing the object from the room when clicked.  I am using AGS version 2.52.  When I run the game and select the hand/interaction cursor and click on the object I get this error message.

An error has occured.  Please contact the game author for support, as this problem is caused by the game rather than the interpreter.
(ACI version 2.52.455)

(Global Script Line 32)
Error: ObjectOff: Invalid object specified.

I think I am running the game like Lucas Arts.  Any help would be appreciated, thanks.
Title: Re: ObjectOff Error Message
Post by: Gilbert on Mon 24/05/2004 03:27:31
That means you're refering to a non-existing object # in that room, double check the line and see if you have set the corrent parameter.
Title: Re: ObjectOff Error Message
Post by: on Mon 24/05/2004 23:19:20
Thank you so much.  I didn't think about the object number for the room.  I put in the sprite number, the number given the image into AGS.  Thanks a bunch.