What is the quickest way to build a state machine?

快速构建状态机:动作组 AG
Last updated: 2026-10-21

Quickest way to build a state machine

快速构建状态机

The fastest path is to use the Action Group (AG) panel with material groups that already have numbered states.

最快的方法是用动作组(AG)面板,配合已设好编号状态的材料组。

How to do it in 3SAX V3

在 3SAX V3 中的操作

1. Open the Material Group (SG) panel. Make sure your PNG parts have Part ID, join category and numbered states (frames) set.

1. 打开材料组(SG)面板,确认每个 PNG 部件的 Part ID、join 类别和编号状态(帧)已设置。

2. Go to the Action Group (AG) tab and bind a material group.

2. 进入动作组(AG)标签,绑定一个材料组。

3. Add an action unit. Set the target part (join) and choose its seq frame range, e.g. 01:0-5.

3. 添加动作单元,设置目标部件(join)并选择 seq 帧范围,例如 01:0-5。

4. Set relative rotation, scale, X/Y offsets, swap part and trigger event for that unit.

4. 为该单元设置相对旋转、缩放、X/Y 偏移、换件和触发事件。

5. Use auto-suggest sequence to generate a seq that matches the target part's available states.

5. 用自动建议序列生成与目标部件可用状态匹配的 seq。

6. Add more units to cover other joins. Chain transitions by triggering events (EVT).

6. 继续添加单元覆盖其他 join,通过触发事件(EVT)串联状态切换。

7. Bind parts to skeleton joints (BONE) if attached parts must move together.

7. 若部件需一起运动,在骨骼(BONE)中绑定关节。

8. Check the Canvas (CANVAS) preview; drag to fine-tune dx/dy, edit rot/scale.

8. 在画布(CANVAS)预览,拖动微调 dx/dy,编辑 rot/scale。

9. Fix any red hints, run whole-project validation, then RENDER.

9. 修正红色提示,运行整项目验证,然后渲染。

What you CAN and CANNOT do

可以做什么、不能做什么

  • CAN: build, preview, validate and reuse the state machine from the LIBRARY in one click.
  • CANNOT: create an AG unit without a bound material group or a target part with states.
  • Wrong input turns the hint red and the code is rejected; mismatched frames make parts jump or fly apart; unresolved events fail whole-project validation and block render.
  • 可以:构建、预览、验证,并从素材库(LIBRARY)一键载入复用。
  • 不能:在未绑定材料组或目标部件无状态时创建 AG 单元。
  • 输入错误时提示变红且代码被拒;帧不匹配会导致部件跳变或飞散;事件未解析将验证失败并阻止渲染。

Try it now in the 3SAX V3 creator tool.

现在就在 3SAX V3 创作工具中试试吧。

Advertisement