0

I have a running project https://scratch.mit.edu/projects/71129428/ the problem is the fish in it stuck sometime and scores keep increase. I was thinking of an idea that i may need to apply id to each of the clone i generated for fish it but its not working i guess i have to delete those clones with those id's as well.

1

if you change the code for adding plus one to the score from the cat sprite to fish sprite under when recieve eated it works as desired

enter image description here

enter image description here

Here is a screen dump of what i mean

  • sorry i didn't get what you mean? Thats what i'm doing increasing score by 1 when ever cat touches fish right? – Habib ur Rehman Jul 22 '15 at 20:15
  • yes but u put the block to add the score in the fish sprite under the event you have named eated rather than the cats sprite, the score only ever adds one to the score then instead of adding up while the cat is touching the fish sprite – Tommy Harris Jul 22 '15 at 22:04
  • Nope, its in Cat Sprite block the fish block has id's which are keeping the track of fish generated. And i removed those id's because i'm thinking its right until i get another solution – Habib ur Rehman Jul 23 '15 at 5:30
  • sorry i meant u should move it from the cats sprite to the fish one, under the event eated, i have tested it and it only adds one to the score, like i have above in the two images – Tommy Harris Jul 23 '15 at 6:41
  • like this scratch.mit.edu/projects/71236652 – Tommy Harris Jul 23 '15 at 6:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .