Discuss Scratch

wengen
New Scratcher
4 posts

How to create a car jump a ramp

how to make a car jump on a ramp
how do i make a car jump a ramp so it goes over it and so it doesn't go straight through it
but i want to be able to jump a ramp with controls and not teleporting it over the ramp like i have done
thanks
i have posted it the tag is jumping and the name is untitled 3
mixmaster007
Scratcher
4 posts

How to create a car jump a ramp

Here's a complicated, but very good way of doing this:

1) Make two separate wheel sprites.
2) Whenever you accelerate, both wheels will move forward simultaneously.
3) Also make a separate car sprite with both wheels missing, and the little + sign is located right where the left wheel would be.
4) Use a script that makes the car ALWAYS go to the left wheel.
5) Use a script that makes the car ALWAYS point towards the right wheel.
6) Use a script (same for both wheels) that makes the wheel always move upward when touching the ground, and move downward when NOT touching the ground.

And there you have it!

P.S. This will also make the car move around on bumpy terrain smoothly. Make sure to put a link to the game so I can see how it turns out. Hope I helped
RadioactiveWolf2005
Scratcher
1 post

How to create a car jump a ramp

mixmaster thanks for the advice!!!!!!
Th3_C0d3r
Scratcher
100+ posts

How to create a car jump a ramp

It amazing how something that seem so simple can actually be very, very complicated. Since I prefer realistic physics here a project I been working on for the past 2 days.

Hopefully it contains some insight to a much finer project.

-Scratch On!

Powered by DjangoBB