Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Need help with bugatti game, again!
- brycebabyak
- New to Scratch
3 posts
Need help with bugatti game, again!
is it possible to make an adjust block?, because most of my roads are tilted, and my car drives straight through them. could somebody show me the script for defining that?
- brycebabyak
- New to Scratch
3 posts
Need help with bugatti game, again!
I mean, when I drive it, it doesn't keep its tires on the ground, it goes right through the ground. Let's say my ground is tilted, and make of 3 tiles, like this .
_-`. when my car lands on the first tile, it drives right through the second tile, instead of adjust to the ground sprite.
_-`. when my car lands on the first tile, it drives right through the second tile, instead of adjust to the ground sprite.
- scubajerry
- Scratcher
1000+ posts
Need help with bugatti game, again!
forever
if (touching [ground sprite v]) then
set [Y_velocity v] to (1)
end
change [y_velocity v] by (-.3)
end
Last edited by scubajerry (Oct. 13, 2013 18:34:06)
- jji7skyline
- Scratcher
1000+ posts
Need help with bugatti game, again!
I think I know what you mean. What you need is a script that tells your sprite to move up if it is touching terrain, and move down if not. This project uses that method to make a similar game.
http://scratch.mit.edu/projects/2777552/
http://scratch.mit.edu/projects/2777552/
- Discussion Forums
- » Help with Scripts
- » Need help with bugatti game, again!