Orthello is a 2D Plugin in Unity 3D.It is used to develop 2D games in Unity 3D. It basically consists of animations and sprites and let them to interact with one another. In this blog I have discussed animations.
1)Animations in Orthello are stored in Animation objects and rendered on screen using Animated Sprite objects. 2)The image/frame sequences of an animation are stored in the animation object's Animation Framesets. 3)Framesets contains a frame sequence from a sprite container. 4)We can use an animation object to create one animation and can extend scross multiple containers.
How to set an Animation object
1) Drag an Animation Orthello Object (located in /Orthello.Objects/Sprites) into scene.
The animation object will be automaticly added to OT.animations in scene's hierarchy. 2) Set the different properties of animation object. Name Fps- Framespeed used when playing the entire animation ( all framesets ) of the object. Duration- Its duration in seconds. It is related to fps and no of frames Framesets-The framesets is an array of AnimationFrameset objects and the size of the array can be set in the editor by setting the 'size' setting. The entire animation consists of all frames specified by all framesets in this object. Single 'named' framesets can also be played seperately.
An Animation Frameset object has the following settings:
Name
The name of this animation frameset. This name is used when you want to play a single frameset using the frameset setting in the AnimatingSprite object or when calling its Play(string frameSet) method. Container
The sprite container that holds image frames for this animation frameset. An animation frameset can only get images from one container. Start Frame
The sprite container's frame index of the start frame for this animation frameset. End Frame
The sprite container's frame index of the end frame for this animation frameset. Frame Names
Fill this array of strings with the names of the frames you want to use as a sequence. If this is set, the Start Frame and End Frame setting will be ignored.
0 Comment(s)