I'm making a project that involves a car driving along the roads. I know how to scroll from side to side easy. In it I have the car build up mph by acceleration and I got it to work fine with the scenes. But I've reached a problem that involves slopes.
So what I want it to do is have the car point in the direction of the ground in other words have the car at the exact angle of the ground. I've also done this part but here's the hard part. I don't know how to have the car change its y position while driving up the hill.
Right now what the car does is point in the direction of the ground and the go right through the ground. Here's the link to my project. http://scratch.mit.edu/projects/bullelk12/2719124
Hope the link worked.
Offline
bullelk12 wrote:
Wow thanks. I have no idea how that works but it does.
It works like the steps block does, but steps uses sin to change the x as well, it's based on a circle, how far up you have to go to get the the same level as a point on a circle, the point being where your angle points.
Offline