Here is the code.
Code:
if (speedUp < -playerSpeed) then (speedUp := -playerSpeed)
The compiler says "-playerSpeed" has not been defined.
Okay. So my solution is...
Code:
if (speedUp < playerSpeed -- (playerSpeed * 2)) then (speedUp := playerSpeed -- (playerSpeed * 2 ))
Problem solved.
But here's my question.
Shouldn't I be able to give a variable a negative value by placing a "-" in front of it because I can do it with numbers and a variable is just representing a number?
And was there a better way of solving this problem?
Thanks for your help!



