Okay So I Got This Project In MY Computers Class But I Can't Seem To Figure IT Out
http://mrlanda.com/apcs/scratch/race%20car.sb Thats THe Address
I'm Supposed To Make The Car Go Around The Track Using The Sensing Blocks With THe If Control Block I Got It Throug One Stage But NOt The second
Please Help!!!
Offline
Shinryoku wrote:
Okay So I Got This Project In MY Computers Class But I Can't Seem To Figure IT Out
http://mrlanda.com/apcs/scratch/race%20car.sb Thats THe Address
I'm Supposed To Make The Car Go Around The Track Using The Sensing Blocks With THe If Control Block I Got It Throug One Stage But NOt The second
Please Help!!!
about that, you have to put in scripts in the sprite.
Offline
beebe wrote:
Shinryoku wrote:
Okay So I Got This Project In MY Computers Class But I Can't Seem To Figure IT Out
http://mrlanda.com/apcs/scratch/race%20car.sb Thats THe Address
I'm Supposed To Make The Car Go Around The Track Using The Sensing Blocks With THe If Control Block I Got It Throug One Stage But NOt The second
Please Help!!!about that, you have to put in scripts in the sprite.
I know How To Use The scripts But Dont Know Which Ones To Use
Offline
Hi Shinryoku,
I don't want to give you all the answers but here are some pretty good hints.
Before you start scripting any project, you have to ask yourself: if I did this manually, how would I do it? Here's an example for your particular problem:
Solution 1:
a) move the car a certain number of steps
b) if it touches the grass:
- rotate it a certain number of degrees counterclockwise
c) start over
Solution 2:
a) move the car a certain number of steps
b) if it touches the grass:
- move it backward the same amount of steps as in a)
- rotate it a certain number of degrees counterclockwise
c) start over
Both solution 1 and 2 appear to be logically good but before you try them both, you don't really know. You can also experiment with different values in a) (how many steps to move) and b) (how many degrees to rotate).
By the way, try these in Scratch:
- move an object a positive number of steps (for example: Move 50 steps)
- move the same object a negative number of steps (for example: Move -50 steps)
What happens?
Now all you have to do is figure out which scripts to use to try out solution 1 and 2.
Good luck!
LeBurt.
Offline
Hi Shinryoku,
I downloaded the projects and made a few adjustments.
here's the link.
http://scratch.mit.edu/projects/_Pinky/37730
hope this was helpful.
Offline