Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I don't know how to make a big AI game. How can I do it?
- horse_development
-
Scratcher
10 posts
I don't know how to make a big AI game. How can I do it?
I don't think generative AI is possible in scratch, sorrywhat kind of AI? the old stuff like NPCs or actual AI?Actual AI
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
people have done it, I'm just looking for ideas for codeI don't think generative AI is possible in scratch, sorrywhat kind of AI? the old stuff like NPCs or actual AI?Actual AI
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
well, nobody cares about this forum so it will be inactive. I chec it daily, you can necropost until 2032
- pio10657
-
Scratcher
9 posts
I don't know how to make a big AI game. How can I do it?
here is an example.
So, i made it once well it turned out to work but you have to say the words in order…
WELL i tried THIS,
AND IT WORKED! well anyways we have limited answers because OF COURSE, Scratch does NOT have an API. MAYBE JUST ADD MORE ANSWERS LOL
here is the game.
So, i made it once well it turned out to work but you have to say the words in order…
WELL i tried THIS, when green flag clicked
if <> then
else
if <> then
end
end
AND IT WORKED! well anyways we have limited answers because OF COURSE, Scratch does NOT have an API. MAYBE JUST ADD MORE ANSWERS LOL
here is the game.
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
here is an example.oh ok
So, i made it once well it turned out to work but you have to say the words in order…WELL i tried THIS,
when green flag clicked
if <> then
else
if <> then
end
end
AND IT WORKED! well anyways we have limited answers because OF COURSE, Scratch does NOT have an API. MAYBE JUST ADD MORE ANSWERS LOL
here is the game.
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
umumiik
- dem_bot
-
Scratcher
500+ posts
I don't know how to make a big AI game. How can I do it?
A language model:
So what you do is you make a neural network and then you find the partial derivative of the loss function and then you multiply the gradient by the learning rate and change every weight by that until there's no more improvement.
A less efficient version is where you use the loss of a model to determine its fitness, then pick the best performing models and mutate or fuse them to make new models that have a chance to have a higher fitness.
The third option is the Markov chain, where no conventional training is required, but instead you look at how many times certain tokens occur in certain orders and make a graph with the chances for each state to flow to the next state. This is relatively lightweight and more suitable on scratch, but generally gets an effect similar to spamming the suggested words on a phone keyboard.
LLMs have billions of parameters and are trained on data centres, so don't expect your home brew to get anywhere close to chatgpt.
An image generator:
The way those are generally trained is by taking an image with a description and adding random noise to it and training the AI to filter out the noise. You gradually increase the amount of noise, until the entire image is noise and the AI is generating an image instead of filtering the noise. This you also do with gradient descend, like the first bit about the language models.
Image generators are also really quite big, so it'll already be quite an accomplishment if you could train one purely to make dog images.
So what you do is you make a neural network and then you find the partial derivative of the loss function and then you multiply the gradient by the learning rate and change every weight by that until there's no more improvement.
A less efficient version is where you use the loss of a model to determine its fitness, then pick the best performing models and mutate or fuse them to make new models that have a chance to have a higher fitness.
The third option is the Markov chain, where no conventional training is required, but instead you look at how many times certain tokens occur in certain orders and make a graph with the chances for each state to flow to the next state. This is relatively lightweight and more suitable on scratch, but generally gets an effect similar to spamming the suggested words on a phone keyboard.
LLMs have billions of parameters and are trained on data centres, so don't expect your home brew to get anywhere close to chatgpt.
An image generator:
The way those are generally trained is by taking an image with a description and adding random noise to it and training the AI to filter out the noise. You gradually increase the amount of noise, until the entire image is noise and the AI is generating an image instead of filtering the noise. This you also do with gradient descend, like the first bit about the language models.
Image generators are also really quite big, so it'll already be quite an accomplishment if you could train one purely to make dog images.
- LittleLogie
-
Scratcher
55 posts
I don't know how to make a big AI game. How can I do it?
I don’t think most options are viable for scratch
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
A language model:I totally got that.
So what you do is you make a neural network and then you find the partial derivative of the loss function and then you multiply the gradient by the learning rate and change every weight by that until there's no more improvement.
A less efficient version is where you use the loss of a model to determine its fitness, then pick the best performing models and mutate or fuse them to make new models that have a chance to have a higher fitness.
The third option is the Markov chain, where no conventional training is required, but instead you look at how many times certain tokens occur in certain orders and make a graph with the chances for each state to flow to the next state. This is relatively lightweight and more suitable on scratch, but generally gets an effect similar to spamming the suggested words on a phone keyboard.
LLMs have billions of parameters and are trained on data centres, so don't expect your home brew to get anywhere close to chatgpt.
An image generator:
The way those are generally trained is by taking an image with a description and adding random noise to it and training the AI to filter out the noise. You gradually increase the amount of noise, until the entire image is noise and the AI is generating an image instead of filtering the noise. This you also do with gradient descend, like the first bit about the language models.
Image generators are also really quite big, so it'll already be quite an accomplishment if you could train one purely to make dog images.
- Da_Best_Gamer123
-
Scratcher
41 posts
I don't know how to make a big AI game. How can I do it?
Your text to link here…ok necropost til 2032
Last edited by Da_Best_Gamer123 (Dec. 26, 2025 02:15:24)
- Discussion Forums
- » Help with Scripts
-
» I don't know how to make a big AI game. How can I do it?
WELL i tried