CAVEDU教育團隊技術部落格 / MIT App Inventor

[AppInventor]Wait Function

✍ 徐 豐智📅 2014-08-04👁 1,146

參考網站:http://jock36.blogspot.tw/2014/07/appinventorwait-function.html#more

Hi!我是偉和

今天要交各位AppInventor 等待指令

在AppInventor裡面是沒有等待指令所以在寫某些程式時會變得非常困難

所以我就去爬文

查了些範例後 我決定使用子程式的方式去撰寫wait 指令

這裡是程式碼

所以之後你可以使用這子程式去控制延遲效果了

例如這樣:

我使用延遲子程式去使我的手機每按一次按鈕會震動5次

如果我沒放這子程式 那麼手機會持續震動直到for each迴圈結束

所以看完這篇你已經會在appinventor內使用延遲指令了!

本文發表於MIT App Inventor,並標記MIT App Inventor、wait。

相關文章 📎

Arduino首次接觸就上手 - 藍牙4.0篇01_控制LED亮滅

2021-05-10

【App Inventor 路徑規劃專題】使用 Navigation 導航元件

2020-08-17

MIT App Inventor 重磅更新!Personal Audio Classifier 聲音辨識

2020-04-27

App Inventor 上傳資料到 Google試算表 - 作法1結合Google表單

2020-03-09

留言 💬 (0)

還沒有留言,來當第一個。