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

#1 2011-08-11 15:06:01

bramblehorse
Scratcher
Registered: 2011-08-11
Posts: 5

Please help me and my friend!

My friend and i are making an interactive take care of nyan cat game does anyone know how to make its health and happiness and other things go up and down randomly? And does any one know how to make things to feed it and how to feed it?

Offline

 

#2 2011-08-11 15:41:45

bramblehorse
Scratcher
Registered: 2011-08-11
Posts: 5

Re: Please help me and my friend!

we have our teacher helping us but not much

Offline

 

#3 2011-08-11 15:45:30

bramblehorse
Scratcher
Registered: 2011-08-11
Posts: 5

Re: Please help me and my friend!

our teacher helped us a bit. Thank you mr. teacher! and my other friend is trying to help us.

Offline

 

#4 2011-08-13 13:01:40

PlutoIsHades
Scratcher
Registered: 2010-10-18
Posts: 1000+

Re: Please help me and my friend!

If the health and happiness are bars, make, say, five costumes(or however many you want), each with a different amount colored in.  Let's say 5 is highest and 1 is lowest.  To pick a random one of these:

[blocks]<set{ health }to(<pick random( 1 )to( 5[/blocks]
not quite sure how to set costume # to this, but this should get the # for you.
Hope this helps.
Good luck with your game!


Minecraft, Redwall, and Cyberchase fan, and PROUD.

Offline

 

#5 2011-08-19 13:34:24

bramblehorse
Scratcher
Registered: 2011-08-11
Posts: 5

Re: Please help me and my friend!

PlutoIsHades wrote:

If the health and happiness are bars, make, say, five costumes(or however many you want), each with a different amount colored in.  Let's say 5 is highest and 1 is lowest.  To pick a random one of these:

[blocks]<set{ health }to(<pick random( 1 )to( 5[/blocks]
not quite sure how to set costume # to this, but this should get the # for you.
Hope this helps.
Good luck with your game!

Thanx. smile  We got it working now! Check it out! its called care nyan cat by katiekool0.

Offline

 

Board footer