Assign View

Started by Candle, Thu 04/11/2004 23:41:36

Previous topic - Next topic

Candle

How do you Assign view with code ? I knew how to do it but forgot now .
Trying to AnimateObject but keeps giving errors about Assigning a view .

Candle

Ok I found the setobjectview but now I get this error
---------------------------

(Room 3 script line 7)
Error: AnimateObject: invalid loop number specified

---------------------------
OK   
---------------------------
I have four frames in the loop ? the view is 7 .

Using this code ,
SetObjectView(0,7);
AnimateObject(0,2,0,0);

TheJBurger

I think your problem is that in AnimateObject, you're running the object animation on loop 2. On view 7 if the animation is on loop 0, AnimateObject should be:

AnimateObject(0, 0, 0, 0);

Your current script code says that object 0 is animating on view 7, loop 2, this should be corrected to view 7 loop 0.

Candle

Thank you . I was just going to post that I found what was wrong .. and it was the loop number ..
Been awhile  using AGS and in between I have had a mild stroke
so I'm having some memory problems .

Goot

Actually you want AnimateObject (0,0,x,0); x being the time each frame is shown.

SMF spam blocked by CleanTalk