Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 12/10/2004 19:06:08

Title: AnimatedObjectsAndAssigning View
Post by: on Tue 12/10/2004 19:06:08
ive search all the faqs and the help guides and couldnt fix it, ive linked an object to animated when i use an inventory item on it but everytime i use the item on the object and the test game crashes and a message says:
An error has occured.Please contact the game author for support, as this is likely a scripting error and not a bug.(global script line 60)Error:AnimateObject: Object has not been assigned a view..


any solutions?
thx
Title: Re: AnimatedObjectsAndAssigning View
Post by: Ashen on Tue 12/10/2004 19:21:24
Have you assigned the object a view? If not, look up SetObjectView () in the manual.
If you have, and you're still getting this, are you sure you're trying to animate the right object? Are you sure you assigned the view to the right object?
Title: Re: AnimatedObjectsAndAssigning View
Post by: on Tue 12/10/2004 19:35:39
Well now that is the problem, the help guide tells me something but it doesnt tell me what i need to know, i know i need to set the view but where do i do this? (the help doesnt specify this) it says i need to type a object number and view number. i know the object number but what is the view number? the number it is on the list under the (views) command....
Title: Re: AnimatedObjectsAndAssigning View
Post by: Ashen on Tue 12/10/2004 19:45:51
Yes, the view number is the number of the view that contains the animation you want to run (the number it is on the list under the views command).

As to where to put it, it can either be in one of the 'Player enters screen' interactions (First time, Before Fade In, After Fade In), accessed via the 'i' button on the Room Settings window, or just before you run the animation in the objects interactions list.
Title: re:
Post by: on Tue 12/10/2004 19:53:43
awsome thanks,that worked. appriciate the help.