Discuss Scratch

d3vi0us
New Scratcher
6 posts

Help making a Rng game :)

I’m a little bit new to scratch and I want to make an RNG game anyone know where to start?
annoymus_Error_10101
Scratcher
55 posts

Help making a Rng game :)

Start by making a system!
Scratch has the
(pick random () to ())
block, which is perfect for building games with a random element!
If it has many things you can get (e.g. 1 in 2, 1 in 50, 1 in 500)
you can make it like
<(pick random (1) to (2)) = [1]>
to check if it is a 1 in 2.
Hope this helps, happy coding!
nuclear_news
Scratcher
55 posts

Help making a Rng game :)

scratch has a built in RNG system that you could utilize in the following code

if <(pick random [x] to [y]) = [x]> then
...
end

Last edited by nuclear_news (Jan. 8, 2025 14:36:20)

d3vi0us
New Scratcher
6 posts

Help making a Rng game :)


annoymus_Error_10101 wrote:

Start by making a system!
Scratch has the
(pick random () to ())
block, which is perfect for building games with a random element!
If it has many things you can get (e.g. 1 in 2, 1 in 50, 1 in 500)
you can make it like
<(pick random (1) to (2)) = [1]>
to check if it is a 1 in 2.
Hope this helps, happy coding!

Ty

Powered by DjangoBB