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

#1 2011-12-01 07:40:29

bubsythebobcat
Scratcher
Registered: 2011-11-07
Posts: 100+

add a If touching block

scratch should add a  if touching block with a space for the blue thing instead of making you add it to a block like if space key pressed or whatever!


SORRY BUT THIS ACCOUNT IS CLOSED AND NO LONGER ACTIVE. GOODBYE)

Offline

 

#2 2011-12-01 10:41:18

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: add a If touching block

Sorry, I don't understand what you're saying...


Why

Offline

 

#3 2011-12-01 12:01:19

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: add a If touching block

so you want a command if touching block instead of a predicate??


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#4 2011-12-02 04:26:51

bubsythebobcat
Scratcher
Registered: 2011-11-07
Posts: 100+

Re: add a If touching block

RedRocker227 wrote:

Sorry, I don't understand what you're saying...

What i mean is. a  yellow command block  called "if touching" and a purple command block that lets sprites change backgrounds



<when green flag clicked>
<play sound[
<pen up>
<pick random( 1 )to( 10


SORRY BUT THIS ACCOUNT IS CLOSED AND NO LONGER ACTIVE. GOODBYE)

Offline

 

#5 2011-12-02 07:14:11

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: add a If touching block

There is already a Command Block for “if touching” and a purple Looks block for changing backgrounds.  tongue  It would be a waste of time to put it in one block.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#6 2011-12-02 09:24:43

bubsythebobcat
Scratcher
Registered: 2011-11-07
Posts: 100+

Re: add a If touching block

henley wrote:

There is already a Command Block for “if touching” and a purple Looks block for changing backgrounds.  tongue  It would be a waste of time to put it in one block.

i mean to let sprites change the background and a yellow command if touching block thats what i mean't


SORRY BUT THIS ACCOUNT IS CLOSED AND NO LONGER ACTIVE. GOODBYE)

Offline

 

#7 2011-12-02 10:00:02

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: add a If touching block

For if touching, use if+touching _?

and for backgrounds, broadcast "change background" and make the stage change backgrounds.

Offline

 

#8 2011-12-02 15:13:56

orangeduelmaster1
Scratcher
Registered: 2011-09-16
Posts: 54

Re: add a If touching block

consider
[blocks]
<forever if><touching[x
change to background...
<end>
[/blcks]

Last edited by orangeduelmaster1 (2011-12-02 15:16:54)


the best person there ever has been and who will ever be        
try roblox or this scratch fish!!!

Offline

 

#9 2011-12-02 16:14:20

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: add a If touching block

bubsythebobcat wrote:

henley wrote:

There is already a Command Block for “if touching” and a purple Looks block for changing backgrounds.  tongue  It would be a waste of time to put it in one block.

i mean to let sprites change the background and a yellow command if touching block thats what i mean't

Why does the color matter? There’s already a functional block.

See?
http://i39.tinypic.com/dqop6s.gif

And if you make the sprites use this script:

http://i39.tinypic.com/5nky6c.gif

And have the stage do this:

http://i43.tinypic.com/1fipud.gif

Then you have a functioning script that allows sprites to change the background.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer