Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

实用指令集

感谢:艺素馒头 (由解包《文字游戏》一代而得)

目录

模板一:开门(无需额外动画物件)

用途

用于门物件的开门过场。该写法不需要单独放置动画物件。

前提

  • 门物件图层位于玩家下方。
  • 在本段指令后接上你自己的切换地图逻辑。

完整指令块

@[play_se] {"path":"res://Sounds/se/第一章 音效/SE_1_3_door_open.wav"}
@[play_sprite_animation] {"frame_count":30,"path":"res://Sprites/door/door_open.png","time_sec":1}
@[wait] 10
@[move_route] {"target":"Player","wait":true}
@[set_through] true
@[move_to_event] "门"
@[set_through] false
@[end_move_route]
@[event_fade_to] {"target":"Player"}
@[wait] 60

模板二:无需玩家操控的推字

用途

自动推动指定物件,并播放推字动画与音效。

可调参数

  • "pos": [5,5]:改为被推动物件当前坐标。
  • push_low_1.wav 中的数字可改为 1-4,切换不同推字音效。
  • rotation 方向参考:
    • 向右:0
    • 向下:90
    • 向左:180
    • 向上:-90

完整指令块

@[type] {
    "texts": "动{'name':'推字动画','tags': ['动画']}",
    "pos": [5,5],
    "tags": ["推字"],
    "has_animation": false,
    "need_accept": false
}
@[move_route] {"target":"被推的物件","wait":false}
@[move_down]
@[end_move_route]
@[play_se] {"path":"res://Sounds/se/push_low_1.wav"}
@[tween_word_sprite] {
    "target": "推字动画",
    "position": [32, 80],
    "rotation": 90,
    "time_sec": 0
}
@[play_sprite_animation] {
    "target": "推字动画",
    "frame_count": 15,
    "path": "res://Sprites/glove_push/u_glove_S.png",
    "time_sec": 0.5
}
@[clear_typed] "推字"