Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Problems with script
- sealpoint
-
11 posts
Problems with script
Scratch didn't behave reliably
The script is simple:
clear
pen down
forever
set pen color to random 1, 200
set xpos to random -280, 280
set ypos to random -180, 180
glide to xpos, ypos
The above script worked for the instructor on windows 7
but all the students had problem - the color is not changing
- RUBIXS
-
60 posts
Problems with script
the pen color range might be less then or a lot more then 1-200 so it might be changing but you just might not be able to see it.
- turkey3
-
1000+ posts
Problems with script
Well, I'm not sure why it isn't changing but I noticed some other things. Instead of setting x and y variables and then gliding to those variable's positions, try this script instead:
That way, you don't need to glide and you don't need to use any variables. Maybe it will work then. As for the color range, it is 1 to 200. If it still doesn't work, then it's a glitch.
Edit: if you're using Scratch 1.4, try 2.0
Edit: I think I may also know the problem!!! Make sure your pen shade is about 50. If it's 100 it's too bright to see.
clear
pen down
forever
set pen color to (pick random (1) to (200))
go to x (pick random (-240) to (240)) y (pick random (-180) to (180))
Edit: if you're using Scratch 1.4, try 2.0
Edit: I think I may also know the problem!!! Make sure your pen shade is about 50. If it's 100 it's too bright to see.
Last edited by turkey3 (June 20, 2013 01:20:08)
- Discussion Forums
- » Help with Scripts
-
» Problems with script