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
we have our teacher helping us but not much
Offline
our teacher helped us a bit. Thank you mr. teacher! and my other friend is trying to help us.
Offline
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!
Offline
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. We got it working now! Check it out! its called care nyan cat by katiekool0.
Offline