http://scratch.mit.edu/projects/bob6/1181896
help? I got the tutorial down, but when I go to the first level, the ball your controlling freezes!
Everything seems right to me...
Offline
Well, I'm not so sure about that part, but I see you've programmed it quite oddly - might I suggest using these blocks for your movement instead of what you have?
[blocks]<change y by(
<change x by(
[/blocks]
It's a lot simpler that way.
EDIT: I figured it out - it's the bottom script on the ball. What you have is this:
When Green Flag clicked forever if <level = 1> Go to x: -205 y: 50 else if <level = 2> else
and so on. Essentially, it just won't let the ball go anywhere buy -205, 50 at this point.
What you want is this:
When Green Flag clicked forever if <level = 1> Go to x: -205 y: 50 wait until <not <level = 1>> else if <level = 2> else
And so on - just keep putting "wait until" for each level, and it should work like a charm!
Last edited by coolstuff (2010-07-09 16:50:40)
Offline
OK... very odd... Like the first guy I recomend the
[blocks]
<change x by(
<change y by(
[/blocks]
bricks... oh and make sure NONE of the sprites are touching the ball at the start...
if you are using gravity with variables you should be EXTRA careful!! Sorry if this doesn't help...
Offline
coolstuff wrote:
Code:
When Green Flag clicked forever if <level = 1> Go to x: -205 y: 50 wait until <not <level = 1>> else if <level = 2> else
Why not just use this instead?
When Green Flag Clicked Wait until <level = 1> Go to x: -205 y: 50 Wait until <level = 2> Go to x: -45 y: 10
Et cetera.
Or, you could make a list of x postions and y postions, and do this:
When I receive (Next Level) change level by 1 Go to x: (item (level) of [x positions]) y: (item (level) of [y positions])
The second one is shorter and easier to add levels with, but might be a little harder to understand.
Offline
Harakou wrote:
coolstuff wrote:
Code:
When Green Flag clicked forever if <level = 1> Go to x: -205 y: 50 wait until <not <level = 1>> else if <level = 2> elseWhy not just use this instead?
Code:
When Green Flag Clicked Wait until <level = 1> Go to x: -205 y: 50 Wait until <level = 2> Go to x: -45 y: 10Et cetera.
Or, you could make a list of x postions and y postions, and do this:Code:
When I receive (Next Level) change level by 1 Go to x: (item (level) of [x positions]) y: (item (level) of [y positions])The second one is shorter and easier to add levels with, but might be a little harder to understand.
Both of which work quite well! Turns out I made some serious misevaluations on what would be easy to snap together
Offline
The link is broken. Error 404...
Why was it deleted?
Offline