(Formerly known as SetObjectFrame, which is now obsolete)
(Formerly known as SetObjectView, which is now obsolete)
Object.SetView(int view, optional int loop, optional int frame)
Sets the object's view to VIEW, and changes the object's graphic to FRAME of LOOP in VIEW.
If you do not supply the loop or frame, they will be left unchanged.
You must use this command before calling Animate, so that AGS knows which view to animate
the object with.
Example:
object[3].SetView(14);
object[1].SetView(5, 2, 0);
will change object 3's view to view number 14, and change object 1 to view 5, loop 2, frame 0.
See Also: Object.Animate
|