Sadie_coder wrote:what is the red piece?I noticed that you just joined less than half an hour ago… It would be nice if you read through the whole topic before commenting! It's forum etiquette! Literally the post above yours explains the red piece:ĭeck26 wrote:Red blocks are just things that Scratchblocks doesn't recognise so someone has entered something incorrectly or deliberately indicated the space where whoever wants to use the script should insert their own code.If you're posting because you didn't understand that explanation, a red piece is what happens when you make a Scratch block on the forums that doesn't actually exist in Scratch. Then, you do this to pick one that has not been used: repeat until > set to ))v) of )] end replace item (number you are currently using) of with repeat that to pick numbers OPTIONALLY, you can do this instead after you have your list of numbers: repeat until set to (pick random (1) to (length of (list of unused numbers))) set to (item (list item being used) of ) delete (list item being used) of (list of unused numbers) endwith this, you don't have to wait teh few seconds it would take to hit-and-miss for an unused number. Do this to make a list of numbers in order: set to repeat (however many random numbers you want) change by (1) add to endthen, you will have a list of numbers from one to whatever.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |