Interpolate/Acceleration Help
Hey guys,
I need some help,
I have a spaceship which accelerates but as I let go of the button I want it to slowly decrease in acceleration to eventually its not moving. I used interpolate of 2 seconds and I changed the velocity x and y but as I re press the button it won't move until the seconds is done. Does anybody know how to fix this or do without the interpolate. I want an object to accelerate when I press a button and slowly decelerate to 0 after 2 seconds or so but at the same time when I re press the acceleration button I want it to accelerate again and cancel the decelerate code.
Any help will be appreciated! Thanks guys.
I need some help,
I have a spaceship which accelerates but as I let go of the button I want it to slowly decrease in acceleration to eventually its not moving. I used interpolate of 2 seconds and I changed the velocity x and y but as I re press the button it won't move until the seconds is done. Does anybody know how to fix this or do without the interpolate. I want an object to accelerate when I press a button and slowly decelerate to 0 after 2 seconds or so but at the same time when I re press the acceleration button I want it to accelerate again and cancel the decelerate code.
Any help will be appreciated! Thanks guys.
Comments
However, you CANNOT stop an interpolation mid-way so if you need to do that, use Change Velocity or Accelerate instead.