第 7 步:让我们使用x的值(鼠标的 x 坐标)来设置矩形的宽度。
- 在图形选项卡中,单击.
- 拖出Set Width 。将它放在mouse_move 块内,就在···· y · = · stage的正下方。 mouse_y() ¬ 。
- 将.set_width()之前的变量从sprite更改为my_rect以将.set_width()分配给my_rect 。
里面有一个命令一个事件,如果它缩进 4 个空格或 1 个制表符并且前面有一个···· ¬ 。
To navigate the page using the TAB key, first press ESC to exit the code editor.