right now i have a small car game thing.
i have it so that when the car hits this "ice patch"
it speeds up. but i can't get it to go regular speed when it comes off the "ice patch"
if (this.hitTest(_root.currentCar._x,_root.currentCar._y, true) == true)
{
_root.currentCar.maxSpeed = _root.currentCar.maxSpeed + 20;
}
else
{
_root.currentCar.maxSpeed = _root.currentCar.maxSpeed;
}
i can't figure it out...it just stays going super fast. =\
i have it so that when the car hits this "ice patch"
it speeds up. but i can't get it to go regular speed when it comes off the "ice patch"
if (this.hitTest(_root.currentCar._x,_root.currentCar._y, true) == true)
{
_root.currentCar.maxSpeed = _root.currentCar.maxSpeed + 20;
}
else
{
_root.currentCar.maxSpeed = _root.currentCar.maxSpeed;
}
i can't figure it out...it just stays going super fast. =\