You're trying to do the same thing with the brake method as you originally had with your acceleration method. You need to be updating speed, not the variable brake.
Just copy/paste the...
Type: Posts; User: helloworld922
You're trying to do the same thing with the brake method as you originally had with your acceleration method. You need to be updating speed, not the variable brake.
Just copy/paste the...
You're accelerate method is broken.
Instead of re-assigning the acceleration with acceleration + 5, you should be increasing the speed by 5.
something like this:
public void accelerate()...