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

#1 2011-05-26 11:04:18

ittayd
New Scratcher
Registered: 2011-05-26
Posts: 1

(newbie) 'forever if touching' doesn't do anything

Hi,

Just started to learn Scratch.

I created a script where the cat sprite revolves and changes costumes. On clicking the left/right arrows it changes the X coordinate.

Now I added another sprite and then added 'forever if touching sprite', with action 'say ouch'.

I clicked play, moved the cat to touch the dragon and nothing happens.

What am I doing wrong?

Regards,
Ittay

P.s., is there a way to attach the script to the post?

Offline

 

#2 2011-05-26 11:13:52

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: (newbie) 'forever if touching' doesn't do anything

I guess you didn't put <when green flag clicked>[/blocks] on top of <forever if>[/blocks]...

And you can add Scratch blocks to your post by clicking the categories and blocks at the bottom. But remember to type [blocks] before you start and [/blocks] at the end or else it would be ugly.

Offline

 

#3 2011-05-26 12:00:17

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: (newbie) 'forever if touching' doesn't do anything

The best way to add blocks is actually to host a screenshot of them (right click the scripting area, save picture of scripts) and link to them with an image tag:
[img]http://url.com[/img]

To answer your question, maybe you selected the wrong sprite?

Offline

 

#4 2011-05-26 12:49:14

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: (newbie) 'forever if touching' doesn't do anything

1. Make sure it is a "Forever if" block or a "If" block inside a "Forever" block. A "Forever" block inside an "If" block will not do what you want.
2. Make sure you have then "When GREENFLAG" clicked" block on the top
3. Make sure the scripts are in the right sprite
4. Make sure the "Touching [_____]" block says the right sprite
5. Make sure the sprite is not hidden.

Offline

 

#5 2011-05-27 07:47:34

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: (newbie) 'forever if touching' doesn't do anything

LS97 wrote:

The best way to add blocks is actually to host a screenshot of them (right click the scripting area, save picture of scripts) and link to them with an image tag:
[img]http://url.com[/img]

To answer your question, maybe you selected the wrong sprite?

Don't forget that he/she's just a New Scratcher...

Offline

 

Board footer