This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-18 05:08:03

CCAICT
New Scratcher
Registered: 2010-10-06
Posts: 2

racing

i need to find a way of making the car in my racing game move smoothly and to slow down when it touches a certain, and to drift as well, not too much really.

Offline

 

#2 2011-11-18 16:33:21

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: racing

I made you a car which moves with acceleration and decceleration, turns depending on how fast the car is moving and slows down when it touches the grass.
http://scratch.mit.edu/projects/RedRocker227/2158031
You're welcome to use it, just please give me credit somewhere (like in project notes)
Hope this helped!  smile


Why

Offline

 

#3 2011-11-18 17:02:39

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: racing

Also, tell me what you think of it; if anything needs changing, tell me and I'll change it.


Why

Offline

 

#4 2011-11-18 17:03:33

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: racing

Think about getting a velocity variable, and moving (velocity) steps. Then acceleration simply increases the velocity variable and deceleration simply decreases the velocity variable. Ask me if you're not sure  smile


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

Board footer