kode program scratch untuk membuat animasi dimana di backdrop 1, ada 2 kucing berjalan dan mengobrol, lalu di backdrop 2, ada 1 kuda/hewan lainnya dan kucing yg mengobrol.
singkatnya jadi misal si kucing A jalan lalu ketemu kucing B dan mengobrol. lalu si kucing A jalan sambil ke backdrop 2, ternyata bertemu dgn kuda Z dan mengobrol. lalu lanjut jalan....
jwb
set backdrop to "backdrop 1"
* set cat A to face right
* set cat B to face right
* say "hello, cat B!" by cat A
* say "hello, cat A!" by cat B
* repeat (forever):
* move cat A 10 steps forward
* move cat B 10 steps forward
* if on edge of screen:
* turn cat A 180 degrees
* turn cat B 180 degrees
set backdrop to "backdrop 2"
* set cat A to face right
* set horse Z to face right
* say "hello, horse Z!" by cat A
* say "hello, cat A!" by horse Z
* repeat (forever):
* move cat A 10 steps forward
* move horse Z 10 steps forward
* if on edge of screen:
* turn cat A 180 degrees
* turn horse Z 180 degrees