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

#1 2012-08-12 11:39:44

Kajunkat
Scratcher
Registered: 2012-06-30
Posts: 37

Random Place?

I'm making a game where when you enter a horse show, you win a random place. To see your placings you press a clipboard that will show you five different variables.- 1st, 2nd , 3rd, 4th, and 5th Place. I want you to recieve a random place, then witch ever random place you receive, that variable changes by 1. How can I do this?

Offline

 

#2 2012-08-12 11:49:59

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Random Place?

I think that this is what your looking for:

set [place v] to ((pick random (1) to (5) ) + (1))


http://i46.tinypic.com/35ismmc.png

Offline

 

#3 2012-08-12 11:54:48

Kajunkat
Scratcher
Registered: 2012-06-30
Posts: 37

Re: Random Place?

I'll try this!

Offline

 

#4 2012-08-12 11:56:03

Kajunkat
Scratcher
Registered: 2012-06-30
Posts: 37

Re: Random Place?

Do you think I could upload it and see if you could do something? It didn't work...

Last edited by Kajunkat (2012-08-12 11:56:20)

Offline

 

#5 2012-08-12 12:16:20

Kajunkat
Scratcher
Registered: 2012-06-30
Posts: 37

Re: Random Place?

I'm gonna edit your suggestion to work.

Offline

 

#6 2012-08-12 12:37:50

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Random Place?

Kajunkat wrote:

Do you think I could upload it and see if you could do something? It didn't work...

I could try. Just give me a link when you upload it.


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer