Discuss Scratch

ShadoOkami21
New Scratcher
2 posts

I wanted to make a cat breeding game, how do I do this?

Hey, my name is Shadow and I am rather new to scratch. I had this idea to make a cat breeding farm simulation type game where you can have a bunch of different cat breeds and mate them to get a kitten or two, though I guess where I am confused when I debate how to make this is in the following areas:

-How can I make the results from breeding random, but follow genetics I would I code this?

-How can I make a currency system so that you can go to an adoption center and buy more cats (Or sell your cats).

-And how can I give people the ability to save their progress?

To add to this I use Snap with his basically a more advanced system that is inspired by Scratch, just in case you guys needed to know to help me out better. Thank you.

Last edited by ShadoOkami21 (June 14, 2019 05:18:09)

ShadoOkami21
New Scratcher
2 posts

I wanted to make a cat breeding game, how do I do this?

Hey, my name is Shadow and I am rather new to scratch. I had this idea to make a cat breeding farm simulation type game where you can have a bunch of different cat breeds and mate them to get a kitten which will then be added to the cats you have, though I guess where I am confused when I debate how to make this is in the following areas:

-How can I make the results from breeding random, but follow genetics how would I code this (Only certain ones will be able to result from breeding two types of cats)?

-How can I make a currency system so that you can go to an adoption center and buy more cats (Or sell your cats).

-And how can I give people the ability to save their progress (Not sure if this is even possible)?

To add to this I use Snap which is basically a more advanced system that is inspired by Scratch, just in case you guys needed to know to help me out better. Thank you.

((Sorry there where quite a few typos and I guess you can't edit more than three times, kind of stupid if you ask me, but anyways I rewrote this.))
ResExsention
New Scratcher
1000+ posts

I wanted to make a cat breeding game, how do I do this?

Hi, Shadow!

Sorry if I mess up some things in my answer, I'm not completely familiar with Snap!.

ShadoOkami21 wrote:

I guess you can't edit more than three times

No. If you're a new Scratcher you can't edit once you leave the page. This means you have to stay on the page to be able to edit it (or you can just press the back button).

ShadoOkami21 wrote:

How can I make the results from breeding random, but follow genetics how would I code this (Only certain ones will be able to result from breeding two types of cats)?

You might use a traits system. Each cat gets a set of traits, and combinations of genes can add or remove traits. Lists would help:

new_cat_traitsiftraits_of_cat_1containsstrong?thenaddstrongtonew_cat_traits for example if you want to require that two specific traits are there, then:iftraits_of_cat_1containsblack_coat?andtraits_of_cat_2containswhite_coat?thenaddgray_coattonew_cat_traits white + black = gray for example

ShadoOkami21 wrote:

How can I make a currency system so that you can go to an adoption center and buy more cats (Or sell your cats).

Make a variable called money:

moneyz

When you buy a cat:

whenIreceivebuying_a_catbroadcastset_up_new_cat here you would semi randomly select traits and stuffaddnew_cattocats_that_the_player_has a list that holds what cats the player has. The new_cat would be the specific values of the cat (traits)changemoneyzbyhowmuchthecatcosts--thisisanegativenumber

When you sell a cat:

whenIreceiveselling_a_catbroadcastremove_cat whatever else you need when removing a catdeletethe_catofcats_that_the_player_has remove it from the list; now the player doesn't have the catchangemoneyzbyhowmuchyoucansellthecat--thisisapositivevalue

ShadoOkami21 wrote:

And how can I give people the ability to save their progress (Not sure if this is even possible)?

This is perfectly possible. You're making this in Snap!, right? I'm not sure how cloud variables work there, because here on Scratch there's a limit of 10.

But you might create a variable called save_code and basically:

setsave_codetojoinmoneyzjoincats_that_the_player_hasotherstuff

Yes, unfortunately I'm not completely familiar with Snap!, but let me know if I helped to some extent.

Good luck!
grumpsey
Scratcher
5 posts

I wanted to make a cat breeding game, how do I do this?

Meow
grumpsey
Scratcher
5 posts

I wanted to make a cat breeding game, how do I do this?

setpencolortosetpencolorto
Cutie_Pooge
Scratcher
500+ posts

I wanted to make a cat breeding game, how do I do this?

grumpsey wrote:

Meow
Please don't necropost.
Yeetoburro1
Scratcher
1000+ posts

I wanted to make a cat breeding game, how do I do this?

grumpsey wrote:

Meow

grumpsey wrote:

setpencolortosetpencolorto
Hi! You just necroposted. This topic is 1 year old, so it's not used anymore. To prevent further necroposts, I will ask a moderator to close this. -Yeetoburro1 Made using garnetluvcookie's Necropost/Thread Hijack message generator here.
Don't you just love it when people blockspam and necropost at the same time
Enderman0123
Scratcher
8 posts

I wanted to make a cat breeding game, how do I do this?


Hi! I seem to know how to do this cuz I've made one. Well, I can't show it here cuz I ain't know how to make the code the way I want it and I can't link the project, I have no idea how to do it. Well, go to me profile and check the Chicken Breeding simulator.






Lostinthewoods1006
Scratcher
1 post

I wanted to make a cat breeding game, how do I do this?

Cool.
Im going to use this someday
bluedragon8633
Scratcher
1000+ posts

I wanted to make a cat breeding game, how do I do this?

Lostinthewoods1006 wrote:

Cool.
Im going to use this someday
Please don't necropost, I' surprised it's still open.
Moonsong800
Scratcher
4 posts

I wanted to make a cat breeding game, how do I do this?

How do I make my kittens grow up?

Powered by DjangoBB