元编程参考文档

动画

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 视觉小说