Discuss Scratch

doonkoo
Scratcher
100+ posts

Screen Flip Not Flipping!

I made a contest entry form thing description whatever, and i have it so that when you press space, it should go to the next backdrop. Instead, it stops the project! I shared it as a draft so people can see if there is an issue
ErnieParke
Scratcher
1000+ posts

Screen Flip Not Flipping!

Ah, okay, I see where your problem is, and it's a bit of a hidden behavior of Scratch. Each time before it runs your repeat until, Scratch checks if the space key is pressed. When you do press it, Scratch skips to the end of your repeat until and notices that there's nothing there. It then does nothing at all. To fix it, you'll need to move your if statement to the end (and outside) of your repeat until, and it'd be best if you also got rid of the if itself.

Now, there'll be a new problem. When the next piece of text gets the message to appear, it won't appear. Why? Because it also notices that the space bar is being pressed, and will move onto the end. Effectively not running the show code. To fix this, you'll have to add on a [wait until <not ( key pressed?)> before each broadcast.

Sorry if that sounded a bit like a jumble; I fixed your code if you want to look here:

Operation Awesome Fixed

I hope that this helps!

With regards,

ErnieParke
doonkoo
Scratcher
100+ posts

Screen Flip Not Flipping!

I did what you said and it worked! Thanks! But, on the second-to-last one, it doesn't work. Eeesh! Why don't any of my projects work?
ErnieParke
Scratcher
1000+ posts

Screen Flip Not Flipping!

doonkoo wrote:

I did what you said and it worked! Thanks! But, on the second-to-last one, it doesn't work. Eeesh! Why don't any of my projects work?
They do, it's just that you forgot to move the if outside of the repeat in your black piece of text. If you do just that, you should be good.

With regards,

ErnieParke
doonkoo
Scratcher
100+ posts

Screen Flip Not Flipping!

Do you want to join Operation: Awesome?
ErnieParke
Scratcher
1000+ posts

Screen Flip Not Flipping!

doonkoo wrote:

Do you want to join Operation: Awesome?
Maybe as a judge, though I won't be submitting any projects. Not because I might be judge (and give myself first), but because there isn't anything I'm currently working on, or will be for awhile. Now, if I do become judge, should I go for beginners, or for advanced? That's a question I'll have to figure out.

With regards,

ErnieParke
doonkoo
Scratcher
100+ posts

Screen Flip Not Flipping!

Well you seem to be sorta advanced… so I guess advanced.

Powered by DjangoBB