car wheels change rotation speed based on car speed

sebababisebababi Member Posts: 51
edited November -1 in Working with GS (Mac)
Hi,

Pls check out this project

http://gamesalad.com/game/10368

Car with rotating wheels which rotate based on speed

The problem is that I calculate the speed based on the location in a Time gap. And for the first time gap I don't have the speed.

How could I do this in a different way or solve it.

It's moving without any key press or touch.

thanks

Comments

  • forkliftforklift Member Posts: 386
    I faked this in a game I'm currently making by having the wheels be an animation and changing that speed based on the cars linear velocity.
  • PhoticsPhotics Member Posts: 4,172
    Maybe this will work...

    Rotation behavior on each of the wheel actors...
    In the speed field, an expression...
    self.Motion.Linear Velocity.X

    The rotation speed could be adjusted with a multiplier or divider.
Sign In or Register to comment.