UIS Animation Manual

Application Scenarios

`Map with animation

`Movable sptites

Syntax

UIS Animation is a part of UIS, any qustions about UIS, refer to the UIS Manual.

According to the UIS Manual, animation is a series of descriptions of motions defined IN ADVANCE, which could be quoted in sprites.

A description of motion should be started with:(colon), each kind of motion status should be descripted within one single line, started from the second line.Sprites quote the descriptions of motions with 'motion'. For instance

:test_move

name=opacity,from=0,to=250,time=70

name=show,time=500

_node

motion=test_move

In which there is only one single line of motion status in one motion group, an abbreviated method is allowed to write in the place of motion property, only need a !(exclamation mark) behind 'motion='. For instance

_node

motion=!name=opacity,from=0,to=250,time=70

Notice

`The length of motion group's name may not exceed 40 characters.

`One motion per line. There's no need of semicolon to end the line.

`Only English characters and numbers allowed.

UIS supports group definition of motion group's name. For instance:

:test-[1,2,3]

Square bracket after sprite's name after a dash means there are three sprites defined together: test-1, test-2 and test-3. They have same properties.

Different sprites could share one motion description, group definition is not necessary in most situations.

Motion Definition

Each line of motion definition contains at least two properties: 'name' and 'time', different properties are separated by ','(comma). First property should be 'name', other properties could be placed in any order.

Properties are composed of property name and property value, connected by '='(equal sign), more than one property values should be written in '()' (braparentheses). For instance:

name=opacity,from=0,to=250,time=(70,100),repeat=3

name=opacity,from=0,to=250,time=70,repeat=3

name=move,from=(100,200),to=(300,300),trans=(0.11,0.22,0.5,1)

name=show,time=500

UIS support follow property name:

from/to

Four situations determined by property name

`One single number

`Two numbers

`Four numbers

`Six-digit color number starting with '#'(pound)

Detailed situations are listed below.

Sign inX

Sign in

Forgot Password? Register

Wait...