This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-29 12:44:19

Arch-Fiend
New Scratcher
Registered: 2013-04-27
Posts: 10

help for a noob like me

i just started using scratch, and while its not super complicated i rarly know what im doing. im not making anything right now except practicing ideas i have. right now im trying to make the thing, act like a die roller, which means i want to make it take a random number betwen 1 and a variable, then contenue that process based on another variable, like random 1-6, 3 times. then i want to sum up each of the results so if i got 1, 3, and 6 it would make 10, then finaly i want to add another variable to that sum and display it with the "say __ for _ sec" code.

any ideas?

Offline

 

#2 2013-04-29 13:15:30

Tohmis
Scratcher
Registered: 2013-02-18
Posts: 58

Re: help for a noob like me

When gf clicked
repeat (times)
set [random v] to  (pick random [1] to (to))
change [sum v] by (random)
this does exacly what you said  smile


Check out my new game
http://scratch.mit.edu/static/projects/Tohmis/3300878_sm.png

Offline

 

#3 2013-04-29 13:32:55

Arch-Fiend
New Scratcher
Registered: 2013-04-27
Posts: 10

Re: help for a noob like me

not exactly, this code creates a sum that keeps rising, i want to be able to use this to get a new result each time. sorry i didint specify

Offline

 

#4 2013-04-29 13:46:21

Arch-Fiend
New Scratcher
Registered: 2013-04-27
Posts: 10

Re: help for a noob like me

never mind, i just added "change sum by (0-sum)" at the end

Offline

 

#5 2013-04-29 20:01:33

Arch-Fiend
New Scratcher
Registered: 2013-04-27
Posts: 10

Re: help for a noob like me

http://scratch.mit.edu/projects/Arch-Fiend/3301958

Offline

 

Board footer