Discuss Scratch

MoreDerekMSMYT
Scratcher
48 posts

ScratchSpellingGame Extreme - Spell 1-10 bug

So, I was making a typing game named ScratchSpellingGame, a game where you type long words and is directed to speedtypists. The game was inspired by a Roblox game named “Spelling Bee” made by Bean's Can. However, I realized something. When you get a question wrong, the project bugs out and it says: “Spell: 1”. I don't know what is the solution, see the image attached and a snippet from the word randomizer script.



when green flag clicked
if <(word) = [1]> then
set [word v] to [supercalifragilisticexpialidocious]
end

The rest is just the same snippet as shown above but with a different identifier and words.

My browser / operating system: Windows NT 10.0, Chrome 141.0.0.0, No Flash versions detected

Last edited by MoreDerekMSMYT (Nov. 2, 2025 04:29:09)

pancakeken
Scratcher
46 posts

ScratchSpellingGame Extreme - Spell 1-10 bug

Might Join???
Looks fun
dem_bot
Scratcher
100+ posts

ScratchSpellingGame Extreme - Spell 1-10 bug

Are you sure you check it every time (if block is not a loop)? And I recommend you use a list instead if you plan to get anywhere close to the entire dictionary.
MoreDerekMSMYT
Scratcher
48 posts

ScratchSpellingGame Extreme - Spell 1-10 bug

dem_bot wrote:

Are you sure you check it every time (if block is not a loop)? And I recommend you use a list instead if you plan to get anywhere close to the entire dictionary.

I tried using a list and a variable, here is the code I used

when green flag clicked
add [supercalifragilisticexpialidocious] to [listOfWords v]
add [chargoggagoggmanchauggagoggchaubunagungamaugg] to [listOfWords v]
set [word v] to (pick random (item (1) of [listOfWords v] :: list) to (item (2) of [listOfWords v] :: list))

But, when I tested it, it said “Spell: 0”.

Any fix?

Last edited by MoreDerekMSMYT (Nov. 2, 2025 19:34:14)

dem_bot
Scratcher
100+ posts

ScratchSpellingGame Extreme - Spell 1-10 bug

It should be
(item (pick random (1) to (2)) of [list v] :: list)
Otherwise it will pick a random number between a string and a string, both interpreted as 0, so a number between 0 and 0
MoreDerekMSMYT
Scratcher
48 posts

ScratchSpellingGame Extreme - Spell 1-10 bug

Fixed. Forum closed.

Powered by DjangoBB