hi my rocket has suddenly stopped thrusting suddenly all my code is 100% correct and working
my rocket was moving but no longer is pls help
Hi Ibrahim,
How did you ensure that your code is 100 % correct? In many cases, the problem is in ‘100 % correct code’. For this reason, it is never advisable to ignore the code just because one thinks that it is 100 % correct. Even if it is 100 % correct, there is still a chance that it does not work as expected. Generations of programmers wasted a lot of time because of that.
Have you already tried to add Debug.Logs to your code to see what is going on during runtime? Maybe your Update method does not get called anymore.
You pressed the Play button to play your game in the editor, didn’t you?
I know that it’s 100% correct because I got no error messages also my rocket was thrusting a few days ago and I didn’t change my code also I copied the code from the course resources
Pls assist me
It just stopped working today it used to work fine ?
No error message does not imply 100 % correct code. No error message while your game is not running just tells you that there is no compiler error. And if you get no error message at runtime, the computer could still ignore important parts of the code.
Do you remember what you did right before the rocket stopped to thrust? I do not see any problem in your screenshot. Could you please share your relevant code as formatted text? And have you already tried to add Debug.Logs to your code to see what is going on during runtime? If so, which messages appeared in your console?
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.