car slows on grass help
ktfright
Member Posts: 964
okay, i'm acting so N00B today, plus i should have been figured this out by now, but, what is a good way to get my car actor to slow a little bit when it goes off the track, and i mean can i make something that when the car actor goes over the other actor, it slows down a bit.
(my track is one image, so the actor slowing down the car is going to be invisible and everywhere except the track)
thnx
(my track is one image, so the actor slowing down the car is going to be invisible and everywhere except the track)
thnx
Comments
can't you use an collision event ? if your car collides with your invisible actor you enable a drag-behaviour to slow down your car?
(maybee with a timer on the drag behaviour that destroys itself to not completly stop the car)
just an idea...
cheers
SDMG
1) Either cut the grass out of the picture and make it an actor or create an invisible actor that goes over the grass. Do the same for the track.
2) Create one integer game attribute labeled "grass max speed", and another labeled "track max speed".
3) Set-up a couple rules. When car collides with grass, change car velocity to 200 and constrain attribute Self.Motion.Max_Speed to Game.Grass_Max_Speed.
4) When car collides with track, change velocity to 250 (so that the speed change seems slightly gradual as you go from track to grass) and constrain Self.Max_Speed to Game.Track_Max_Speed.
Pretty sure that should work. Good luck