On my project dirt racer v1.1, it comes up with the win screen when you click play. However, if you press the green flag again it works. Can anyone help?
Offline
I'm not exactly sure what causes this, but I have noticed that projects have a tendency to do this. Have you ensured that absolutely everything (sprites, backgrounds, variables, etc) is set to reset completely upon pressing the green flag?
Offline
Harakou wrote:
I'm not exactly sure what causes this, but I have noticed that projects have a tendency to do this. Have you ensured that absolutely everything (sprites, backgrounds, variables, etc) is set to reset completely upon pressing the green flag?
I'll check... Thanks
Offline
I think this problem is caused by certain variables being reset off-sync. That is, if you have two scripts, and at th beginning of both scripts different variables are reset, you should move all the variables to be reset in the second script to the beginning of the first script.
Offline
Basically, Scratch is running all of your scripts simultaneously, but the order is kind of weird. Basically, just as the other two said, you need to have everything reset before any of the real scripting runs.
Offline
Got all that. Thanks!
Offline