Discuss Scratch

super-scratchA7
Scratcher
2 posts

Idea about switching costumes/backdrops

Hello to all Scratchers! :) Today I want to show an interesting trick. This trick is about switching costumes/backdrops. Look at these simple scripts:

1.
when green flag clicked
switch costume to <mouse down?>

2.
when green flag clicked
switch backdrop to <mouse down?>

Do you know how works those scripts? No? Let's see how they work. On clicking the green flag the program “think”, is it mouse down (mouse clicked). For working this program, re-name the costumes “true” and “false”. If the mouse is down (boolean = true), the sprite/backdrop sets the costume to costume “true”. Otherwise, he set his costume to costume “false”. Simple!

super-scratchA7

Last edited by super-scratchA7 (May 14, 2021 11:59:55)

Powered by DjangoBB