Discuss Scratch

Heart333
Scratcher
79 posts

Game goes straight from start to end

Hi,
Okay, so yesterday night, I just added a character to my game, and after I add the character and make some changes with the costumes, the game startup fails- the game goes straight to the end!
Please review my game and code (do NOT remix) and post suggestions. @crazyweasle123 if you happen to be passing by at the moment, your help would be greatly appreciated!!! Once again, the link is here.

Last edited by Heart333 (April 10, 2014 23:18:19)

zacadoole1
Scratcher
100+ posts

Game goes straight from start to end

I have come to the conclusion that the following script in Sprite2 is setting the “End” variable to 1 very shortly after the green flag is clicked.

whenclickedsetxvelto0foreveriftouchingedge?thenif170<ypositionthenbroadcastdeadplaysoundFohgotox:-88y:84setendto1

I figured it out by looking for scripts that change the "End'' variable, and then I tested it by sticking in and changing my own variable in the same script to confirm it. I'm not really sure how to fix it, as I didn't really look through the code that hard, but I hope this helps!

Last edited by zacadoole1 (April 11, 2014 01:29:50)

Heart333
Scratcher
79 posts

Game goes straight from start to end

Wait,.. WHICH sprite?
scubajerry
Scratcher
1000+ posts

Game goes straight from start to end

Heart333 wrote:

Wait,.. WHICH sprite?

It is in sprite2. You might need to right click in the editor area and click CLEAN UP to see it. It is in the next to last script on the right.

Last edited by scubajerry (April 11, 2014 10:10:10)

Powered by DjangoBB