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

#1 2010-05-18 14:54:49

blastoisedragon
Scratcher
Registered: 2010-05-18
Posts: 7

Overriding instructions

OK, So I put instructions for my main character to move back into its previous position if it touches the colour black so, in effect, it acts like a wall. Then I put instructions for my character to go to the start of the maze if it touched Rocket1 (the enemy). Rocket1 is coloured black from below but not from above. When my character touched Rocket1 from above, my character went back to the start but when it touched Rocket1 from below then it didn't, my character just acted as if Rocket1 was a wall. Is there anything I could do to to stop this OTHER than changing the black to a different colour? (Because I have 8 different costumes for Rocket1)

Offline

 

#2 2010-05-18 15:26:00

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Overriding instructions

instead of using the <touching color [black]?> block use the <touching [rocket1]> block.

does that help?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-05-19 03:00:42

blastoisedragon
Scratcher
Registered: 2010-05-18
Posts: 7

Re: Overriding instructions

not really because i need the colour black to act as a wall.

Offline

 

#4 2010-05-19 08:02:14

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: Overriding instructions

Do this:

if <touching color black> and <not <touching rocket1>
go to prev. position.


http://i46.tinypic.com/dw7zft.png

Offline

 

#5 2010-05-19 17:32:17

blastoisedragon
Scratcher
Registered: 2010-05-18
Posts: 7

Re: Overriding instructions

Wow, thank you! I tried it and it worked, thanks for your help!

Offline

 

Board footer