Discuss Scratch

1234abcdcba4321
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

Nevermind, don't post here.

Last edited by 1234abcdcba4321 (Jan. 3, 2014 19:51:53)


I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.
AonymousGuy
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

Add “go to front” in the script “when I start as a clone”.
1234abcdcba4321
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

The problem was that I used “broadcast exit and wait” instead of just a “broadcast exit”.

I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.
AonymousGuy
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

1234abcdcba4321 wrote:

The problem was that I used “broadcast exit and wait” instead of just a “broadcast exit”.
Huh, that's strange, because as soon as I added a “go to front” block it worked fine.
1234abcdcba4321
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

Yeah, it's one of those projects where you have to press green flag twice for some reason to work. I'm not sure why.

I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.
claudine_mbaye
Scratcher
100+ posts

I tried this script before, but it doesn't work anymore

1234abcdcba4321 wrote:

Yeah, it's one of those projects where you have to press green flag twice for some reason to work. I'm not sure why.
In some project you can have a lot of “green hats”.
The user expects some execution order between some of the “green hats”: for instance he expects some variable initalisation in a “green hat” before the occurrence of some message in some other “green hat”.

But the interpreter excutes the “green hats” in some other execution order than expected. When pressing twice, the firsts initalisations were already made and the messages are resent.

If you want to have the right execution order in projects, you should have only one “green hat”, say in the backdrop that raise initalisation messages in the correct order.

This way of doing is also interesting to code different levels of “restarting” the game.
1234abcdcba4321
Scratcher
1000+ posts

I tried this script before, but it doesn't work anymore

Well, I know. I only have one gf script per sprite (costume, hide, effects, etc.). I fixed it by putting some wait 0.1 secs around, though.

I'd highly appreciate it if you were to follow me. Don't forget to go to my profile.
All of my programming suggestions <— You should really get the suggestions move back to the suggestions forum!
Five hundred posts! I never expected to get up there… In only 2-3 months.
Does anyone know what a signature is? I mean, I've already seen 6-7 people get confused.

Powered by DjangoBB