This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-28 15:31:34

CraftingCity
New Scratcher
Registered: 2013-04-28
Posts: 1

Sprite Contact

I cant get my sprites to do anything when they touch. I have the
[scratchblocks]
if <(touching Carl the bard)V>
    switch to costume <(Death)>V
script and it does nothing!

Offline

 

#2 2013-04-28 18:35:06

admad10
Scratcher
Registered: 2013-04-04
Posts: 8

Re: Sprite Contact

You need to get a green flag control block an do this:

when clicked
if
touching color blue
switch to costume
death
V

Offline

 

#3 2013-04-28 20:02:10

Maltese_Falcon
Scratcher
Registered: 2013-03-25
Posts: 100+

Re: Sprite Contact

admad10 wrote:

You need to get a green flag control block an do this:

when clicked
if
touching color blue
switch to costume
death
V

I'd do this:

When clicked
When it starts
forever
always check for:
if
touching
Carl the Bard
If touching Carl
switch to costume
Death
Be dead

Don't replace:
forever
if
touching
Carl

with:
forever if
touching
Carl

. They are NOT the same.

Last edited by Maltese_Falcon (2013-04-28 20:04:52)

Offline

 

Board footer