This post provides a handy reference guide to go from Scratch’s “Operators” category of code blocks to C# with Unity.
Month: July 2019
Scratch To Unity: Sensing
This post provides a handy reference guide to go from Scratch’s “Sensing” category of code blocks to C# with Unity.
Scratch To Unity: Control
This post provides a handy reference guide to go from Scratch’s “Control” category of code blocks to C# with Unity.
Scratch To Unity: Events
This post provides a handy reference guide to go from Scratch’s “Events” category of code blocks to C# with Unity.
Scratch To Unity: Sound
This post provides a handy reference guide to go from Scratch’s “Sound” category of code blocks to C# with Unity.
Scratch To Unity: Looks
This post provides a handy reference guide to go from Scratch’s “Looks” category of code blocks to C# with Unity.
Scratch To Unity: Motion
This post provides a handy reference guide to go from Scratch’s “Motion” category of code blocks to C# with Unity.
Scratch To Unity: Scripting Over Time
Scratch has several code blocks that can take time to complete. For example, you might chain together several “say” blocks to present a conversation. Each block will then pause the execution of that stack until it completes. Up to this point, all of the code we have learned has been synchronous. This means that even if you may know enough to change the text on your UI, that each statement would run one after another so fast that you wouldn’t be able to read each message. Not to worry, we can also obtain a similar result, and we will learn all about it in this lesson.
Scratch To Unity: Scripting Intro
Scratch makes it very simple to “do” things with your sprites by stacking a few well placed code blocks. In Unity, you must “script” your actions with a programming language called C# (pronounced ‘C Sharp’). If you’ve never programmed before, then this will likely be the single greatest hurdle in transitioning from Scratch to Unity, but it is well worth the effort. Once you master the basics you’ll be able to express yourself far better than you had been able to before.
Scratch To Unity: User Interface
The layouts of Scratch and Unity are pretty different, and Unity can be a bit overwhelming by comparison. That is an unfortunate by-product of having so many features. It’s not as bad as you might think though, we just need to re-orient you by letting you know the equivalent location of where and what things are.