第6步:循环每运行一次,我们将 y 坐标改变 100

记住,我们可以使用添加值来更改循环内部变量的值。在此情况下,我们正在更改y值,所以道路都是垂直间隔的!

  • 点击 ,并在循环内部使用 Set Opacity ,将 road 设置为 0.2
  • 在每次循环运行时,在循环内部使用 Add Value y 添加 100 个像素。


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)