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

#1 2013-03-22 08:02:05

Drama27
New Scratcher
Registered: 2013-03-04
Posts: 2

Sprite not moving

It moves in level 1 but once I complete the maze and progress to the next level the sprite refuses to move.

when uparrow key pressed
point in direction 0
move10 steps
if <touching colour grn>
    move -10 steps
broadcast checktouchingcharacter
This is the same coding for all the arrow keys with adjustments to the direction, the maze path is red so it should be working but when it goes to level 2 it stops and it is not touching any green at all.

Any suggestions??

Offline

 

#2 2013-03-22 19:42:15

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Sprite not moving

Drama27 wrote:

It moves in level 1 but once I complete the maze and progress to the next level the sprite refuses to move.

when [Up Arrow v] key pressed
point in direction [0 v]
move (10) steps
if <touching color [#00F000]?>
    move (-10) steps
end
broadcast [checktouchingcharacter v]
This is the same coding for all the arrow keys with adjustments to the direction, the maze path is red so it should be working but when it goes to level 2 it stops and it is not touching any green at all.

Any suggestions??

Fixed. Anyway, could I see the script that receives the broadcast "checktouchingcharacter"?

With regards,

ErnieParke

Last edited by ErnieParke (2013-03-22 19:42:27)


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2013-03-23 08:35:24

Drama27
New Scratcher
Registered: 2013-03-04
Posts: 2

Re: Sprite not moving

there are multiple sprites that receive the code you have to get past them to continue in the maze.

when I receive checktouchingcharacter
if touching witch
broadcast witchquestion
else

and you repeat the same coding for all sprites.

My sprite still wont work in level2 and the code is the same throughout

Offline

 

#4 2013-03-23 08:38:12

ElementalStrike
Scratcher
Registered: 2013-03-06
Posts: 6

Re: Sprite not moving

b

Offline

 

Board footer