Discuss Scratch

meowflash
Scratcher
500+ posts

Scratch Vs. Pico Vs. Defect

I made a game called, Scratch Vs. Pico, but, the win scripts aren't working. Did I do something wrong?

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*
drmcw
Scratcher
1000+ posts

Scratch Vs. Pico Vs. Defect

Could be sarcastic and just type “yes” but without seeing the scripts that's all we can do!

10 !
ScratchVaders or Galaga?
Maybe Eliza can help you decide?
meowflash
Scratcher
500+ posts

Scratch Vs. Pico Vs. Defect

My game is fixed. Just go there and click look inside.

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*
drmcw
Scratcher
1000+ posts

Scratch Vs. Pico Vs. Defect

Well done. Wasn't there when I last looked.

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

Scratch Vs. Pico Vs. Defect

meowflash wrote:

My game is fixed. Just go there and click look inside.
Actually, the bug is still there, I just checked.

Anyway, in Pico, you have this script:

|define [Attack (number)]
|if <(number) = (1)>
| Attack…
|else
| if <(number) = (2)>
| Attack…
| else
| if <(number) = (3)>
| Attack…
| else
| switch to costume [pico-a v]
| say [Hmmm…] for (2) secs
| broadcast
| if <<(Pico's Health) = (0)> or <(Pico's Health) < (0)>> then
| Scratch Wins!
| end
| end
| end
|end
Blank line
If you move the a bit, and add a [stop [this script v]] block in it, you should be fine:

|define [Attack (number)]
|if <<(Pico's Health) = (0)> or <(Pico's Health) < (0)>> then
| Scratch Wins!
| stop
|end
|if <(number) = (1)>
| Attack…
|else
| if <(number) = (2)>
| Attack…
| else
| if <(number) = (3)>
| Attack…
| else
| switch to costume [pico-a v]
| say [Hmmm…] for (2) secs
| broadcast
| end
| end
|end
Blank line
I hope that this helps!

With regards,

ErnieParke

meowflash
Scratcher
500+ posts

Scratch Vs. Pico Vs. Defect

Now it's really fixed! Thanks, Ernie! (Bert Laugh)

More Stuff|My Bandcamp
My DeviantArt|Intro Voting For December 2015 August 10th 2016
Check out my Github, too!

Kumquats, this signature is inedible and poisonus.
Also try the code below in IBNIZ.
sxsaxAr+waxBr-*

Powered by DjangoBB