Discuss Scratch

jamescheek1
New to Scratch
4 posts

Automatically going through my game routine despite not clicking anything?!

Hi.

My scratch project ‘Spanish Animals Game’ is for an assignment at uni and could really do with some help. Occasionally, which is what really bugs me, it automatically goes through my game without clicking anything. My sprites are only set to do anything when they are clicked so nothing should happen unless something is clicked.. but occasionally it gets to halfway through and just goes through it like I have clicked all the right answers. I can't explain it so if someone could have a look that would be brilliant.

Thank you all in advance!

James
drmcw
Scratcher
1000+ posts

Automatically going through my game routine despite not clicking anything?!

You need to check your numbers for example on the cat if question = 1 the 1 has some spaces in it. Also on the boy sprite in the forever loop at the bottom you are testing against blank rather than 0 I think it should be.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
jamescheek1
New to Scratch
4 posts

Automatically going through my game routine despite not clicking anything?!

Thanks I've changed the boy thing. Not sure what you mean about the cat thing though? I have all the numbers it just skips through on its own
drmcw
Scratcher
1000+ posts

Automatically going through my game routine despite not clicking anything?!

If you look in sprite cat2 then if question = 1 is not if question = “1” but if question = “ 1”. click into the 1 and move the cursor you find spaces there, they need to be deleted.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
jamescheek1
New to Scratch
4 posts

Automatically going through my game routine despite not clicking anything?!

thank you changed that too.. not stopping it automatically going through it though I think it does it when I do some wrong answers first?
drmcw
Scratcher
1000+ posts

Automatically going through my game routine despite not clicking anything?!

Worth checking for other numbers that aren't numbers because of spaces too.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
drmcw
Scratcher
1000+ posts

Automatically going through my game routine despite not clicking anything?!

On each of the button sprites you have 2 when this sprite clicked scripts. You only want one. Take the if statement out of the smallest script and attach it onto the other when clicked script. You don't need the forever and/or repeat until bits so just delete them.

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
jamescheek1
New to Scratch
4 posts

Automatically going through my game routine despite not clicking anything?!

Ah thank you so much! I think it works now, can't thank you enough

Powered by DjangoBB