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

#1 2011-10-17 17:31:46

grimreq
New Scratcher
Registered: 2011-10-17
Posts: 2

How to Randomly generate sprites on a screen

We have this idea for a video game where the sprites have different positive and negative values that ultimately define your score. That set aside, we want these sprites to generate at random from a list of 10 or so sprites, at a constant time interval. How do you we approach this issue?

Thanks,

a newbie.  smile

Offline

 

#2 2011-10-17 17:44:29

ScareCrowCritic
Scratcher
Registered: 2011-07-09
Posts: 100+

Re: How to Randomly generate sprites on a screen

You can use this block: [blocks] <pick random( produce [/blocks]

Last edited by ScareCrowCritic (2011-10-17 17:46:53)


http://i.imgur.com/Sy57w.gif

Offline

 

#3 2011-10-17 17:48:20

grimreq
New Scratcher
Registered: 2011-10-17
Posts: 2

Re: How to Randomly generate sprites on a screen

Thank you but when clicked, it says I do not have permission to view that page.

Offline

 

#4 2011-10-17 18:42:54

luiysia
Scratcher
Registered: 2011-07-05
Posts: 1000+

Re: How to Randomly generate sprites on a screen

You could use costumes instead of sprites and use {if ((sprite1 costume)=1)} {do whatever} and so on.

Last edited by luiysia (2011-10-17 18:43:17)


http://i50.tinypic.com/dx00pd.gif

Offline

 

Board footer