Manages a frame-to-frame animation
Parameters:
map
|
JSON object where each property name is one frame and each property value is a list of actors var map = {"frame1":["actor1","actor2"], "frame2":["actor3","actor4"]} |
Parameters:
| Type | Name | Description |
|---|---|---|
| Number |
frame
|
the frame |
| String |
actorName
|
the name of the actor. It must exist. |
Parameters:
| Type | Name | Description |
|---|---|---|
n
|
|
Parameters:
| Type | Name | Description |
|---|---|---|
n
|
|
Parameters:
| Type | Name | Description |
|---|---|---|
f
|
a frame number |
Returns:
| true if the number passed as parameter is a valid frame number, false otherwise |
Parameters:
| Type | Name | Description |
|---|---|---|
f
|
the frame to set as active |
Parameters:
| Type | Name | Description |
|---|---|---|
| Number |
rate
|
the framerate for the animation (optional) |