If you are using straight line slopes...you can use separate sprites for each different slope and have them sense when the ball is touching them and set the slope that the ball uses. That's how my Marble Kit project works
Another approach is to actually measure the slope using some sensor sprites...but that usually takes a fair amount of time and adds lag to the project. It's the best way to go, though, if you are dealing with an uneven surface.
Offline
Paddle2See wrote:
If you are using straight line slopes...you can use separate sprites for each different slope and have them sense when the ball is touching them and set the slope that the ball uses. That's how my Marble Kit project works
![]()
Another approach is to actually measure the slope using some sensor sprites...but that usually takes a fair amount of time and adds lag to the project. It's the best way to go, though, if you are dealing with an uneven surface.
I just made slope sensors- side sensors that are a bit elevated. If they are touching a wall/color, they'll activate and add a bit to the velocity.
Offline
Check out this slope detection. It uses exactly what Sun-Rise Moon uses.
http://scratch.mit.edu/projects/project1/1234179
Offline