BSL:Tutorial/Scratch: Difference between revisions
→Part 8: Forking and Separate Functions
Line 284: | Line 284: | ||
}</tt> | }</tt> | ||
... being whatever you had in "main" before. Add <tt>chr_wait_health griffin 0</tt> at the end of "logic", then type <tt>fork logic2</tt>. Create the function "logic2". In "logic2" you can write whatever you want that you have learned before. For the | ... being whatever you had in "main" before. Add <tt>chr_wait_health griffin 0</tt> at the end of "logic", then type <tt>fork logic2</tt>. Create the function "logic2". In "logic2" you can write whatever you want that you have learned before. For the purpose of this example, '''...''' will represent whatever you had, '''..''' will represent whatever you want, and typed text will represent thing that must be included. | ||
<tt>func void main(void)<br> | <tt>func void main(void)<br> |