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

#1 2011-03-02 22:22:43

jaykethesnake-test
New Scratcher
Registered: 2011-03-02
Posts: 4

If Touching Problem

Hey all,

I got a problem/question about the "If Touching" block. Im trying to use invisible sensor to stop a sprite from moving through a wall. The sensors work fine when they are not hidden but do not work at all if they are hidden. The wall is a separate sprite and other issues cause me to not be able to use the background and the if touching colour block.

Can you tell me what the problem is and how to fix it, if i can?

Thanks,

Jayke

Offline

 

#2 2011-03-02 22:27:49

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

Re: If Touching Problem

set ghost to 100 should work.

if not, use set ghost to 99.

under looks blocks.

Offline

 

#3 2011-03-02 22:33:45

jaykethesnake-test
New Scratcher
Registered: 2011-03-02
Posts: 4

Re: If Touching Problem

Thanks tones, trying it out now.

Also xD,

Any reason why the sensors being not hidden make the sprite move slower. It moves normal speed in display mode.

Jayke

Offline

 

#4 2011-03-03 16:05:30

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: If Touching Problem

jaykethesnake-test wrote:

Any reason why the sensors being not hidden make the sprite move slower. It moves normal speed in display mode.

Jayke

I would suppose that it's just one more thing Scratch has to render. Playing a project in preview mode tends to be slow, so it's better to use presentation mode when you're not just testing out a script.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer