WEEK: 5

Edit Code

Once you have your scene created, you can change the code to make your objects move, interact, collide, and more! Let's see how this works with two objects.

Notice you can select an object, and you create code for that particular object. Remember in Scratch where each object had their code section and then in App Lab they shared? Here, each object has its code, but they share myFirstMethod. Let's take a look at how to make the objects do something.

Edit Code

Once we have added code, we press Run, and we can see what the code does.

Did they both say "hello"? Good!

First Method


Previous section:
Next section: