元編程參考文件

動畫

19 個節點

本頁內容 19

新增動畫影像

函數

A story with an image that is an animation: picture lines and pauses that animate it wherever it is shown.

簽名
新增動畫影像(故事: Story, 名稱: 文字, 動畫: Animation) -> Story
Story AddAnimatedImage(
    Story story,
    string name,
    Animation animation)

參數

名稱型別預設值說明
故事Story—
名稱文字—
動畫Animation—

返回

故事Story
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

同時更改

函數

Changes another property in the step before, so the two change together: a move and a fade at once.

簽名
同時更改(動畫: Animation, 屬性: 文字, 值: 文字) -> Animation
Animation AlsoChange(
    Animation animation,
    string property,
    string value)

參數

名稱型別預設值說明
動畫Animation—
屬性文字—
值文字—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

屬性動畫

函數

Animates a property to a value over some seconds, eased by a warper.

簽名
屬性動畫 -> Animation
    動畫: Animation
    緩動函數: 文字
    秒數: 數字
    屬性: 文字
    值: 文字
Animation AnimateProperty(
    Animation animation,
    string warper,
    double seconds,
    string property,
    string value)

參數

名稱型別預設值說明
動畫Animation—The animation so far.
緩動函數文字—How it moves: linear, ease, easein, easeout, easeout_bounce, ease_back...
秒數數字—How long it takes.
屬性文字—The property.
值文字—The value it ends at, as a script writes it.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

動畫塊

函數

A timeline nested in this one, so a repeat inside it loops only that part.

簽名
動畫塊(動畫: Animation, 塊: Animation) -> Animation
Animation AnimationBlock(Animation animation, Animation block)

參數

名稱型別預設值說明
動畫Animation—
塊Animation—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

從指令碼生成動畫

函數

An animation written as a script's animation block, one statement per line.

簽名
從指令碼生成動畫(指令碼: 文字) -> Animation
Animation AnimationFromScript(string script)

參數

名稱型別預設值說明
指令碼文字—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

動畫轉為指令碼

函數

An animation as a script writes it.

簽名
動畫轉為指令碼(動畫: Animation) -> 文字
string AnimationToScript(Animation animation)

參數

名稱型別預設值說明
動畫Animation—

返回

指令碼文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

在指定時間

函數

What follows starts this many seconds after the animation began, cutting short what was running.

簽名
在指定時間(動畫: Animation, 秒數: 數字) -> Animation
Animation AtTime(Animation animation, double seconds)

參數

名稱型別預設值說明
動畫Animation—
秒數數字—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

呼叫變換函數

函數

Hands the image to a function the game registers for animations, for as long as the function lasts.

簽名
呼叫變換函數(動畫: Animation, 函數: 文字) -> Animation
Animation CallTransformFunction(
    Animation animation,
    string function)

參數

名稱型別預設值說明
動畫Animation—
函數文字—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

從中隨機選擇

函數

One 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.

簽名
從中隨機選擇 -> Animation
    動畫: Animation
    第一個: Animation
    第二個: Animation
    第三個: Animation
    第一項權重: 數字
    第二項權重: 數字
    第三項權重: 數字
Animation ChooseBetween(
    Animation animation,
    Animation first,
    Animation second,
    Animation third,
    double firstWeight = 1,
    double secondWeight = 1,
    double thirdWeight = 1)

參數

名稱型別預設值說明
動畫Animation—
第一個Animation—
第二個Animation—
第三個Animation—
第一項權重數字1
第二項權重數字1
第三項權重數字1

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

包含圖片

函數

A picture drawn inside this one with a timeline of its own, placed within it: sparkles over a lantern.

簽名
包含圖片 -> Animation
    動畫: Animation
    影像: 文字
    時間軸: Animation
Animation ContainsPicture(
    Animation animation,
    string image,
    Animation timeline)

參數

名稱型別預設值說明
動畫Animation—The animation so far.
影像文字—The contained picture.
時間軸Animation—Its own animation; empty keeps it still.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

定義變換

函數

A story with a transform: an animation a show's at can name, which may take parameters.

簽名
定義變換 -> Story
    故事: Story
    名稱: 文字
    動畫: Animation
    參數: 文字
Story DefineTransform(
    Story story,
    string name,
    Animation animation,
    string parameters = "")

參數

名稱型別預設值說明
故事Story—The story.
名稱文字—The transform's name.
動畫Animation—Its animation.
參數文字—Its parameters, separated by commas, each with an optional default: height=20; empty for none.

返回

故事Story
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

包含變換

函數

Runs another transform in place, such as left or one the story defines.

簽名
包含變換(動畫: Animation, 變換: 文字, 參數: 文字) -> Animation
Animation IncludeTransform(
    Animation animation,
    string transform,
    string arguments = "")

參數

名稱型別預設值說明
動畫Animation—The animation so far.
變換文字—The transform's name.
參數文字—Its arguments as a script writes them, separated by commas; empty for none.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

並行

函數

Timelines that run at the same time, each animating its own properties: a bob while fading in.

簽名
並行 -> Animation
    動畫: Animation
    第一個: Animation
    第二個: Animation
    第三個: Animation
Animation InParallel(
    Animation animation,
    Animation first,
    Animation second,
    Animation third)

參數

名稱型別預設值說明
動畫Animation—
第一個Animation—
第二個Animation—
第三個Animation—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

響應事件

函數

What 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.

簽名
響應事件 -> Animation
    動畫: Animation
    事件: 文字
    時間軸: Animation
Animation OnEvent(
    Animation animation,
    string events,
    Animation timeline)

參數

名稱型別預設值說明
動畫Animation—The animation so far.
事件文字—show, replace or hide, or several separated by commas.
時間軸Animation—What happens then.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

重複

函數

Starts the timeline (or the block it is in) again: a number of times, or forever when 0.

簽名
重複(動畫: Animation, 次數: 整數) -> Animation
Animation Repeat(Animation animation, int times = 0)

參數

名稱型別預設值說明
動畫Animation—
次數整數0

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

設定屬性

函數

Sets a property at once.

簽名
設定屬性(動畫: Animation, 屬性: 文字, 值: 文字) -> Animation
Animation SetProperty(
    Animation animation,
    string property,
    string value)

參數

名稱型別預設值說明
動畫Animation—The animation so far.
屬性文字—The property: xalign, yalign, xpos, ypos, pos, xoffset, yoffset, zoom, alpha, rotate, blur, saturation, brightness, tint...
值文字—Its value, as a script writes it.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

顯示圖片

函數

From 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.

簽名
顯示圖片(動畫: Animation, 影像: 文字, 轉場: 文字) -> Animation
Animation ShowPicture(
    Animation animation,
    string image,
    string with = "")

參數

名稱型別預設值說明
動畫Animation—The animation so far.
影像文字—An image name or a file.
轉場文字—A transition whose length the change cross-fades over; empty changes at once.

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

開始動畫

函數

An empty timeline to build on.

簽名
開始動畫() -> Animation
Animation StartAnimation()

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說

等待

函數

Waits before the next step.

簽名
等待(動畫: Animation, 秒數: 數字) -> Animation
Animation Wait(Animation animation, double seconds)

參數

名稱型別預設值說明
動畫Animation—
秒數數字—

返回

動畫Animation
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
動畫
所屬包
Novella 視覺小說