Animation
19 nodes
On this page 19
Add Animated Image
FunctionA story with an image that is an animation: picture lines and pauses that animate it wherever it is shown.
AddAnimatedImage -> Story
story: Story
name: Text
animation: AnimationStory AddAnimatedImage(
Story story,
string name,
Animation animation)Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | |
| name | Text | — | |
| animation | Animation | — |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Also Change
FunctionChanges another property in the step before, so the two change together: a move and a fade at once.
AlsoChange -> Animation
animation: Animation
property: Text
value: TextAnimation AlsoChange(
Animation animation,
string property,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| property | Text | — | |
| value | Text | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Animate Property
FunctionAnimates a property to a value over some seconds, eased by a warper.
AnimateProperty -> Animation
animation: Animation
warper: Text
seconds: Number
property: Text
value: TextAnimation AnimateProperty(
Animation animation,
string warper,
double seconds,
string property,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| warper | Text | — | How it moves: linear, ease, easein, easeout, easeout_bounce, ease_back... |
| seconds | Number | — | How long it takes. |
| property | Text | — | The property. |
| value | Text | — | The value it ends at, as a script writes it. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Animation Block
FunctionA timeline nested in this one, so a repeat inside it loops only that part.
AnimationBlock -> Animation
animation: Animation
block: AnimationAnimation AnimationBlock(Animation animation, Animation block)
Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| block | Animation | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Animation From Script
FunctionAn animation written as a script's animation block, one statement per line.
AnimationFromScript(script: Text) -> Animation
Animation AnimationFromScript(string script)
Parameters
| name | type | default | description |
|---|---|---|---|
| script | Text | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Animation To Script
FunctionAn animation as a script writes it.
AnimationToScript(animation: Animation) -> Text
string AnimationToScript(Animation animation)
Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — |
Returns
| Script | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
At Time
FunctionWhat follows starts this many seconds after the animation began, cutting short what was running.
AtTime(animation: Animation, seconds: Number) -> Animation
Animation AtTime(Animation animation, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| seconds | Number | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Call Transform Function
FunctionHands the image to a function the game registers for animations, for as long as the function lasts.
CallTransformFunction -> Animation
animation: Animation
function: TextAnimation CallTransformFunction(
Animation animation,
string function)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| function | Text | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Choose Between
FunctionOne of two or three timelines, picked at random by weight each time the animation gets here; the same moment of the same shown image always picks the same.
ChooseBetween -> Animation
animation: Animation
first: Animation
second: Animation
third: Animation
firstWeight: Number
secondWeight: Number
thirdWeight: NumberAnimation ChooseBetween(
Animation animation,
Animation first,
Animation second,
Animation third,
double firstWeight = 1,
double secondWeight = 1,
double thirdWeight = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| first | Animation | — | |
| second | Animation | — | |
| third | Animation | — | |
| firstWeight | Number | 1 | |
| secondWeight | Number | 1 | |
| thirdWeight | Number | 1 |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Contains Picture
FunctionA picture drawn inside this one with a timeline of its own, placed within it: sparkles over a lantern.
ContainsPicture -> Animation
animation: Animation
image: Text
timeline: AnimationAnimation ContainsPicture(
Animation animation,
string image,
Animation timeline)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| image | Text | — | The contained picture. |
| timeline | Animation | — | Its own animation; empty keeps it still. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Define Transform
FunctionA story with a transform: an animation a show's at can name, which may take parameters.
DefineTransform -> Story
story: Story
name: Text
animation: Animation
parameters: TextStory DefineTransform(
Story story,
string name,
Animation animation,
string parameters = "")Parameters
| name | type | default | description |
|---|---|---|---|
| story | Story | — | The story. |
| name | Text | — | The transform's name. |
| animation | Animation | — | Its animation. |
| parameters | Text | — | Its parameters, separated by commas, each with an optional default: height=20; empty for none. |
Returns
| Story | Story |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Include Transform
FunctionRuns another transform in place, such as left or one the story defines.
IncludeTransform -> Animation
animation: Animation
transform: Text
arguments: TextAnimation IncludeTransform(
Animation animation,
string transform,
string arguments = "")Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| transform | Text | — | The transform's name. |
| arguments | Text | — | Its arguments as a script writes them, separated by commas; empty for none. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
In Parallel
FunctionTimelines that run at the same time, each animating its own properties: a bob while fading in.
InParallel -> Animation
animation: Animation
first: Animation
second: Animation
third: AnimationAnimation InParallel(
Animation animation,
Animation first,
Animation second,
Animation third)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| first | Animation | — | |
| second | Animation | — | |
| third | Animation | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
On Event
FunctionWhat the image does when it is shown, replaced or hidden. An image whose animation handles hide stays on the stage until that timeline ends, so it can fade or slide away.
OnEvent -> Animation
animation: Animation
events: Text
timeline: AnimationAnimation OnEvent(
Animation animation,
string events,
Animation timeline)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| events | Text | — | show, replace or hide, or several separated by commas. |
| timeline | Animation | — | What happens then. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Repeat
FunctionStarts the timeline (or the block it is in) again: a number of times, or forever when 0.
Repeat(animation: Animation, times: Integer) -> Animation
Animation Repeat(Animation animation, int times = 0)
Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| times | Integer | 0 |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Set Property
FunctionSets a property at once.
SetProperty -> Animation
animation: Animation
property: Text
value: TextAnimation SetProperty(
Animation animation,
string property,
string value)Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| property | Text | — | The property: xalign, yalign, xpos, ypos, pos, xoffset, yoffset, zoom, alpha, rotate, blur, saturation, brightness, tint... |
| value | Text | — | Its value, as a script writes it. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Show Picture
FunctionFrom here on the image shows this picture, cross-fading over a transition's length if one is given: frames of a blink, a candle, a waving flag.
ShowPicture -> Animation
animation: Animation
image: Text
with: TextAnimation ShowPicture(
Animation animation,
string image,
string with = "")Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | The animation so far. |
| image | Text | — | An image name or a file. |
| with | Text | — | A transition whose length the change cross-fades over; empty changes at once. |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Start Animation
FunctionAn empty timeline to build on.
StartAnimation() -> Animation
Animation StartAnimation()
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels
Wait
FunctionWaits before the next step.
Wait(animation: Animation, seconds: Number) -> Animation
Animation Wait(Animation animation, double seconds)
Parameters
| name | type | default | description |
|---|---|---|---|
| animation | Animation | — | |
| seconds | Number | — |
Returns
| Animation | Animation |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Animation
- Package
- Novella Visual Novels