Hello! First post...
My son in tinkering with Scratch and has built a simple program where a ball hits a cat. He has the ball changing it's costume when the sprites contact but the he added that he wants the cat to disappear.
So, contact equals ball changing color and cat disappearing. But the second sprite (cat) script won't run. Ball hits cat, ball changes color but cat doesn't disappear.
So my question is, what do we have to do to make both scripts run? Here is the second script on sprite 2's page.
[blocks]
<when green flag clicked>
<if><touching[ sprite 1
<next costume>
[/blocks]
Any help would be appreciated.
Offline
The problem is that it only checks to see if it is touching the bat once (directly after the green flag is clicked. Try this:
<when green flag clicked>
<wait until><touching[ sprite 1]>
<next costume>
Offline
your problem is that it is only cheeking if its touching the sprite once you should yyoue either a forever block or the script above
Offline
Currently, it will only check if it's touching when the project is started. Simply put a "Forever" block around it, and it'll work. Make sure to program it to show when he project is started again though
Offline